def set_value(self, index, col, value, takeable=False):
        dense = self.to_dense().set_value(index, col, value, takeable=takeable)
        return dense.to_sparse(kind=self._default_kind,
                               fill_value=self._default_fill_value)
Put single value at passed column and index
dataset/ETHPy150Open pydata/pandas/pandas/sparse/frame.py/SparseDataFrame.set_value