Series[Sparse].to_dense not converting to dense. · Issue #25680 · pandas-dev/pandas (original) (raw)

In [1]: import pandas as pd

In [2]: s = pd.Series([1, 2], dtype='Sparse[int]')

In [3]: s.to_dense() Out[3]: 0 1 1 2 dtype: Sparse[int64, 0]