API: rename mode.nan_is_na option to future.distinguish_nan_and_na #63241
+60
−25
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Follow-up on #62040
See #62040 (comment) for some arguments why I think it fits better, but in general: if this option is for migrating to a future change in behaviour (and not to be kept as a choosable mode long term), then a
futureoption fits better.Regarding naming, I would really like to keep the pattern of "enabling" future options by setting them to True. But because of that,
future.nan_is_nawould not work. Tookfuture.distinguish_nan_and_na, but that is quite long, so if someone has a better idea, all ears.