Skip to content
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

Ignore pandas downcast warning #3873

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

AnirudhDagar
Copy link
Contributor

Issue #, if available:
Autogluon 1.0 emits the following warning since pandas 2.2 depreacated downcast arg in pd.fillna.

autogluon/tabular/models/fastainn/tabular_nn_fastai.py:200: FutureWarning: The 'downcast' keyword in fillna is deprecated and will be removed in a future version. Use res.infer_objects(copy=False) to infer non-object dtype, or pd.to_numeric with the 'downcast' keyword to downcast numeric results.

It was partially resolved in #3734

Description of changes:
This PR also adds the warning filter to tabular_nn_fastai.py.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@Innixma Innixma left a comment

Choose a reason for hiding this comment

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

LGTM!

@Innixma Innixma merged commit 88cf674 into autogluon:master Jan 23, 2024
18 of 21 checks passed
@AnirudhDagar AnirudhDagar deleted the fix_tabular_dep_warning branch January 23, 2024 10:29
LennartPurucker pushed a commit to LennartPurucker/autogluon that referenced this pull request Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants