Skip to content

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

# (tests for this case are in test_na_values.py)
if not isinstance(na_values, dict):
# i.e. it must be a set
na_values = list(na_values)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC in this file, it appears usages where this is a list could be a set with some Cython annotations changed, so the annotation of na_values here could match what is gotten from the caller.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We end up passing it to kset_from_list, which is used in two other places with a list. I decided that was a bit more invasive than I want to get ATM.

@mroeschke mroeschke added the IO CSV read_csv, to_csv label Jul 7, 2025
@mroeschke mroeschke added this to the 3.0 milestone Jul 7, 2025
@mroeschke mroeschke merged commit fea4f5b into pandas-dev:main Jul 7, 2025
48 checks passed
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the ref-na_fvalues branch July 7, 2025 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO CSV read_csv, to_csv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants