BUG: pd.array([], dtype=None) should return a masked array · Issue #54371 · pandas-dev/pandas (original) (raw)

Current situation:

import pandas as pd pd.array([]) [] 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([]) [] Length: 0, dtype: Float64