Closed
Description
Current situation:
>>> import pandas as pd
>>> pd.array([])
<NumpyExtensionArray>
[]
Length: 0, dtype: float64
i.e. returns a numpy dtype. This is IMO inconsistent, as pd.array
generally tries to return masked dtypes from lists when possible. IMO the above should instead give:
>>> import pandas as pd
>>> pd.array([])
<FloatingArray>
[]
Length: 0, dtype: Float64