pandas.SparseDtype.fill_value

SparseDtype.fill_value

The fill value of the array.

Converting the SparseArray to a dense ndarray will fill the array with this value.

Warning

It’s possible to end up with a SparseArray that has fill_value values in sp_values. This can occur, for example, when setting SparseArray.fill_value directly.

Scroll To Top