pandas.Series.to_sparse
-
Series.to_sparse(kind='block', fill_value=None)
[source] -
Convert Series to SparseSeries
Parameters: -
kind : {‘block’, ‘integer’}
-
fill_value : float, defaults to NaN (missing)
Returns: -
sp : SparseSeries
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Series.to_sparse.html