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

Silence deprecation warning #1165

Merged
merged 2 commits into from
Nov 17, 2020
Merged

Conversation

jseabold
Copy link
Contributor

Adopt new pandas behavior and silence deprecation warning. This can be quite noisy in fit if there's a datetime in your DataFrame for pandas >= 1.1.0.

Cf. pandas-dev/pandas#34798

Adopt new pandas behavior and silence deprecation warning
@@ -1250,7 +1250,13 @@ def _compute_central_values_of_raw_training_data(self, df, strata=None, name="ba
return v

else:
described = df.describe(include="all")
from distutils.version import LooseVersion
if LooseVersion(pd.__version__) >= '1.1.0':
Copy link
Owner

Choose a reason for hiding this comment

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

TIL LooseVersion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One thing is that distutils will be deprecated in Python 3.9/3.10. Might make setuptools a runtime dependency at some point. Haven't been keeping up with this.

@CamDavidsonPilon
Copy link
Owner

Nice, thanks for the PR @jseabold! Failing tests are unrelated (and the status quo 🙃)

@CamDavidsonPilon CamDavidsonPilon merged commit 3d92bb6 into CamDavidsonPilon:master Nov 17, 2020
@jseabold jseabold deleted the patch-1 branch November 17, 2020 23:36
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