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

Deprecation warnings from pandas #36

Closed
prokie opened this issue Mar 17, 2022 · 1 comment
Closed

Deprecation warnings from pandas #36

prokie opened this issue Mar 17, 2022 · 1 comment
Assignees

Comments

@prokie
Copy link

prokie commented Mar 17, 2022

With pandas 1.4 or later I am getting deprecations warnings from figure_resampler.py

pandas.UInt64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.
@jvdd
Copy link
Member

jvdd commented Mar 17, 2022

We check whether the index datatype is integer on this line:

if isinstance(hf_series.index, (pd.Int64Index, pd.UInt64Index)):

Appearantly both pd.Int64Index and pd.UInt64Index are deprecated since pandas v1.4.0 (and will be removed in pandas v2.0).

pandas-dev/pandas#41153

So, in order to comply with pandas its updated index handling, we should check whether the index is a pd.NumericIndex of integer dtype.

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

No branches or pull requests

2 participants