Skip to content

DEPR: tz-aware Series/DatetimIndex.__array__ returns an object array of Timestamps #30516

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

Merged
merged 3 commits into from
Jan 3, 2020

Conversation

mroeschke
Copy link
Member

@mroeschke mroeschke commented Dec 27, 2019

@mroeschke mroeschke added Deprecate Functionality to remove in pandas Timezones Timezone data dtype labels Dec 27, 2019
@mroeschke mroeschke added this to the 1.0 milestone Dec 27, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. merge on green.

@jbrockmendel
Copy link
Member

jbrockmendel commented Dec 27, 2019

IIRC the places where i see this warning are in xarray and matplotlib tests. should we check with them to make sure they're ready for this? cc @shoyer @tacaswell

@jbrockmendel
Copy link
Member

closes #24716?

@mroeschke
Copy link
Member Author

Yup, looks like it.

@jreback
Copy link
Contributor

jreback commented Dec 30, 2019

I guess waiting on xarray / mpl, can you open an issue on each of those trackers.

@jbrockmendel
Copy link
Member

Does/should this affect np.array(datetimeindex)?

@TomAugspurger
Copy link
Contributor

Yeah, https://github.com/pandas-dev/pandas/pull/30516/files#diff-b8a7b94d7e2ed5f7f109922e7bd3480cL313.

FWIW, I don't think we need to wait on xarray or matplotlib. These are warnings that should be seen by the user, and they have actions they can take already to avoid them.

@shoyer
Copy link
Member

shoyer commented Jan 2, 2020 via email

@jreback jreback merged commit a712191 into pandas-dev:master Jan 3, 2020
@jreback
Copy link
Contributor

jreback commented Jan 3, 2020

thanks @mroeschke

@mroeschke mroeschke deleted the datetimetz_object_array branch January 3, 2020 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Timezones Timezone data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataFrame.to_xarray produces FutureWarning for DatetimeTZ data
5 participants