-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: use_inf_as_na #51684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Deprecate
Functionality to remove in pandas
Comments
We can convert infinity values to NaN before processing: Instead of relying on the use_inf_as_na parameter, you can manually convert infinity values to NaN before processing the data. This can be done using the replace method in pandas. |
Discussed on last week's dev call, consensus was +1 to deprecate. |
2 tasks
weihua916
pushed a commit
to pyg-team/pytorch-frame
that referenced
this issue
Oct 11, 2023
This PR includes fixes for: - running `examples/tutorial.py` on a cuda device - suppressing these countless warnings introduced by pandas-dev/pandas#51684: ``` /home/akihiro/work/github.com/pyg-team/pytorch-frame/torch_frame/data/stats.py:60: FutureWarning: use_inf_as_na option is deprecated and will be removed in a future version. Convert inf values to NaN before operating instead. ```
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Support for use_inf_as_na isn't great, it performs poorly, and we don't have any way to make EAs respect it. Is this worth keeping?
The text was updated successfully, but these errors were encountered: