BUG: Improve error message when casting ExtensionDtype to datetime #37553
Labels
ExtensionArray
Extending pandas with custom dtypes or arrays.
good first issue
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Needs Tests
Unit test(s) needed to prevent regressions
Timezones
Timezone data dtype
Milestone
We support casting
int
andfloat
dtypes toDatetimeTZDtype
:We should be able to do this with the corresponding extension dtypes (
Int
/Float
). Currently this errors:We should get this to work for both
ExtensionArray
and the masked versions.The text was updated successfully, but these errors were encountered: