API: pd.array convert unsupported dt64/td64 to supported? #53058
Labels
API - Consistency
Internal Consistency of API/Behavior
Constructors
Series/DataFrame/Index/pd.array Constructors
Deprecate
Functionality to remove in pandas
In most cases we'd like to align behavior across different constructors (pd.Series, pd.Index, pd.array). One case where we currently don't do that is with an un-supported numpy dt64/td64 dtype. pd.Series/pd.Index will raise on this, while pd.array will wrap it in a PandasArray.
I propose we deprecate that behavior and raise in pd.array like we would in Series/Index.
xref #27460
The text was updated successfully, but these errors were encountered: