Skip to content

Add option to pass na_filter into pd.read_csv() - Dealing with CSV containing NA as string #44

@dazzag24

Description

@dazzag24

I have a CSV detailing info about airports. The country code column is encoded using 2 character ISO-3166 codes. https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

It turns out that the code for Namibia is "NA" and this results in the values being stripped as it converts from CSV to SQLite DB.

I was able to solve this by adding na_filter=False to the pd.read_csv() call in utils.py

return pd.read_csv(

Would you consider adding an option to allow this flag to be passed into the pd.read_csv call?

Thanks
Darren

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions