Open
Description
This is coming out of SparseArray. Right now if you have a homogeneous DataFrame of EAs, then doing something like np.asarray(df)
will always convert to object.
pandas/pandas/core/internals/managers.py
Lines 787 to 794 in 32a74f1
Should we give ExtensionDtype some input on the dtype used here? This would allow for some consistency between np.asarray(series)
and np.asarray(homogeneous_dataframe)
.