pandas.DataFrame.to_sparse
-
DataFrame.to_sparse(fill_value=None, kind='block')
[source] -
Convert to SparseDataFrame
Parameters: fill_value : float, default NaN
kind : {‘block’, ‘integer’}
Returns: y : SparseDataFrame
© 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.22.0/generated/pandas.DataFrame.to_sparse.html