Table Of Contents

Search

Enter search terms or a module, class or function name.

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

Scroll To Top