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

Pandas UserWarning: The argument 'infer_datetime_format' is deprecated #213

Closed
bastien-k opened this issue Aug 18, 2023 · 2 comments · Fixed by #254
Closed

Pandas UserWarning: The argument 'infer_datetime_format' is deprecated #213

bastien-k opened this issue Aug 18, 2023 · 2 comments · Fixed by #254

Comments

@bastien-k
Copy link

infer_datetime_format=True,

With pandas 2.0.3, this line returns a UserWarning:

UserWarning: The argument 'infer_datetime_format' is deprecated and will be removed in a future version. 
A strict version of it is now the default,
see https://pandas.pydata.org/pdeps/0004-consistent-to-datetime-parsing.html. 
You can safely remove this argument.
@gjoseph92
Copy link
Owner

Thanks for pointing this out @bastien-k. Would you have any interest in submitting a fix? Seems like just removing that argument and setting the minimum pandas version to 2.0.3 would do it. (Though I'm a little hesitant to require newer pandas just for that; idk if pandas 2.0 would cause issues for any users.)

@gjoseph92
Copy link
Owner

Finally fixed in 0.5.1, now available on pypi

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 a pull request may close this issue.

2 participants