Skip to content

DEPR: .asobject #1834

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

Closed
jreback opened this issue Jan 16, 2018 · 1 comment
Closed

DEPR: .asobject #1834

jreback opened this issue Jan 16, 2018 · 1 comment

Comments

@jreback
Copy link

jreback commented Jan 16, 2018

xarray 0.10.0.

instead of .asobject, use .astype(object)

pandas/tests/generic/test_series.py::TestSeries::()::test_to_xarray_index_types[PeriodIndex]
  /Users/jreback/miniconda3/envs/pandas/lib/python3.6/site-packages/xarray/core/indexing.py:728: FutureWarning: 'asobject' is deprecated. Use 'astype(object)' instead
    array = array.asobject

-- Docs: http://doc.pytest.org/en/latest/warnings.html
@max-sixty
Copy link
Collaborator

Thanks @jreback

Fixed in #1828, though let me know if anyone sees any other instances

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