original) (raw)
Update NA repr by TomAugspurger · Pull Request #30821 · pandas-dev/pandas (In [2]: df = pd.DataFrame({"A": pd.array([1, 2, None])})
In [3]: df Out[3]: A 0 1 1 2 2
In [4]: df.A Out[4]: 0 1 1 2 2 Name: A, dtype: Int64
In [5]: df.A.array Out[5]: [1, 2, ] Length: 3, dtype: Int64
I think adding color with ANSI codes / custom HTML formatting is still worth doing as in #30778, but this is an improvement for now.