pandas 0.8.1 documentation

pandas.Series.to_sparse

Series.to_sparse(kind='block', fill_value=None)

Convert Series to SparseSeries

Parameters :

kind : {‘block’, ‘integer’}

fill_value : float, defaults to NaN (missing)

Returns :

sp : SparseSeries