Skip to content

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