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: allow Series[Period].astype(dt64) #45055

Merged
merged 2 commits into from
Dec 27, 2021

Conversation

jbrockmendel
Copy link
Member

@jreback jreback added this to the 1.4 milestone Dec 27, 2021
@jreback jreback added the Period Period data type label Dec 27, 2021
with tm.assert_produces_warning(FutureWarning, match=msg):
# GH#44398
res = pi.astype("datetime64[ns, US/Eastern]")
res = pi.astype("datetime64[ns, US/Eastern]")
Copy link
Contributor

Choose a reason for hiding this comment

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

are there tests for Series here? (not in this file, but generally)

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

@jreback jreback merged commit aff0694 into pandas-dev:master Dec 27, 2021
@jbrockmendel jbrockmendel deleted the depr-45038 branch December 27, 2021 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: dt64.astype(period) allowed but not vice-versa
2 participants