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

MAINT: pandas.Index.to_native_types is deprecated #737

Closed
jklenzing opened this issue Mar 16, 2021 · 1 comment · Fixed by #750
Closed

MAINT: pandas.Index.to_native_types is deprecated #737

jklenzing opened this issue Mar 16, 2021 · 1 comment · Fixed by #750
Assignees
Milestone

Comments

@jklenzing
Copy link
Member

jklenzing commented Mar 16, 2021

FutureWarning: The 'to_native_types' method is deprecated and will be removed in a future version. Use 'astype(str)' instead.

https://pandas.pydata.org/docs/reference/api/pandas.Index.to_native_types.html

Deprecated as of pandas 1.2.0. Will be removed in pandas 2.0. Target release date is Oct 1, 2021. https://github.com/pandas-dev/pandas/milestones

One instance found in 3.0 release candidate:

self[key].iloc[i].index.to_native_types()

Unit tests affected:

pysat/tests/test_utils.py::TestBasicNetCDF4::test_write_and_read_netcdf4_default_format_higher_order
pysat/tests/test_utils.py::TestBasicNetCDF4::test_write_and_read_netcdf4_default_format_higher_order_w_zlib
@jklenzing jklenzing changed the title FW: pandas.Index.to_native_types is deprecated MAINT: pandas.Index.to_native_types is deprecated Mar 16, 2021
@jklenzing jklenzing self-assigned this Mar 26, 2021
@jklenzing jklenzing added this to the 3.0.0 Release milestone Mar 26, 2021
jklenzing added a commit that referenced this issue Mar 26, 2021
@jklenzing jklenzing linked a pull request Mar 26, 2021 that will close this issue
10 tasks
@jklenzing
Copy link
Member Author

Closing with merge of #750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant