Have pd.array
infer new extension types
#29791
Labels
API Design
Constructors
Series/DataFrame/Index/pd.array Constructors
ExtensionArray
Extending pandas with custom dtypes or arrays.
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Milestone
Currently
pd.array
sometimes requires an explicitdtype=...
to get one of our extension arrays (we'll infer for Period, Datetime, and Interval).This proposal is to have it infer the extension type for
All of these currently return PandasArray.
Concretely, we'll need to teach
infer_dtype
how not to infermixed
for a mix of strings / booleans and NA values, similar to how it handles integer-naand then handle those in
array
.The text was updated successfully, but these errors were encountered: