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

BUG: Categorical[dt64tz].to_numpy() losing tz #38136

Merged
merged 7 commits into from
Nov 30, 2020

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Nov 28, 2020

@gfyoung gfyoung added Bug Categorical Categorical Data Type Dtype Conversions Unexpected or buggy dtype conversions labels Nov 28, 2020
@jreback jreback added this to the 1.2 milestone Nov 29, 2020
@jreback
Copy link
Contributor

jreback commented Nov 29, 2020

ok for 1.2, can you add a whatsnew note.

@jbrockmendel
Copy link
Member Author

whatsnew added + greenish

@jreback jreback merged commit 93db57e into pandas-dev:master Nov 30, 2020
@jbrockmendel jbrockmendel deleted the bug-26406 branch November 30, 2020 00:11
jbrockmendel added a commit to jbrockmendel/pandas that referenced this pull request Nov 30, 2020
* BUG: Categorical[dt64tz].to_numpy() losing tz

* Update pandas/core/arrays/categorical.py

Co-authored-by: gfyoung <gfyoung17+GitHub@gmail.com>

* Avoid FutureWarning

* whatsnew

Co-authored-by: gfyoung <gfyoung17+GitHub@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Categorical Categorical Data Type Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: to_numpy on categorical data with tz aware datetime categories returns datetime64
3 participants