Skip to content

Feat: add support for na_values and keep_default_na in csv_settings#3872

Merged
georgesittas merged 1 commit intomainfrom
jo/csv_settings_na_value_additions
Feb 21, 2025
Merged

Feat: add support for na_values and keep_default_na in csv_settings#3872
georgesittas merged 1 commit intomainfrom
jo/csv_settings_na_value_additions

Conversation

@georgesittas
Copy link
Contributor

@georgesittas georgesittas commented Feb 19, 2025

Pandas' read_csv coerces certain values into NaN by default. This PR introduces support for the na_values and keep_default_na settings, which can be conditionally specified in order to override the coercion behavior.

Reference: https://pandas.pydata.org/docs/reference/api/pandas.read_csv.html

@georgesittas georgesittas requested a review from a team February 19, 2025 23:32
@georgesittas georgesittas force-pushed the jo/csv_settings_na_value_additions branch from 3ac536c to c8ab91b Compare February 19, 2025 23:33
@georgesittas georgesittas force-pushed the jo/csv_settings_na_value_additions branch from c8ab91b to fa8ab80 Compare February 19, 2025 23:34
@georgesittas georgesittas requested a review from a team February 20, 2025 18:58
@georgesittas georgesittas merged commit bb43e5f into main Feb 21, 2025
21 checks passed
@georgesittas georgesittas deleted the jo/csv_settings_na_value_additions branch February 21, 2025 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants