Skip to content

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
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