DataFrame (and Series?) constructor ignores request for naive datetime64 dtype when passed datetime64 objects with timezone #25843
Labels
DataFrame
DataFrame data structure
Datetime
Datetime data dtype
Regression
Functionality that used to work in a prior pandas version
Timezones
Timezone data dtype
Milestone
I can reproduces this in pandas (development version, 0.24.0+, but not 0.23.4) with this minimal example:
It prints:
There do appear to be a lot of changes to
datetime64
behavior in the changelog for 0.24.0 http://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.24.0.html so maybe this is intended behavior? Maybe the distinction betweendatetime64[ns, UTC]
anddatetime64[ns]
when you pass in an explicitdtype
shouldn't actually be a meaningful difference?The text was updated successfully, but these errors were encountered: