Skip to content

Bug: pandas_convert #163

@lpicci96

Description

@lpicci96

Unexpected behaviour in pandas_convert method when setting scr and to to the same value. The current implementation contains an exit condition, which returns the series without making any conversions.

Although this may provide some minor efficiency gains, it adds some unexpected behaviour. The main convert function does not have a similar exit condition causing different values returned. For a series with mixed types (eg. ISO3 and other types) and converting to ISO3, pandas_convert will return the series with original values, while convert will still run the conversion setting values not found to "not found" or another value set for the not_found argument.

This can be resolved by removing the exit condition so that it aligns with the convert functionality, or enhancing the documentation (or logging a warning for users)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions