Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
>>> ss = pd.SparseSeries([1, 2])
>>> ss.iloc[0] = 3
-----------------------------------------------------------------------
TypeError: SparseArray does not support item assignment via setitem
Problem description
SparseSeries and SparseDataFrame don't support value assignment through some indexers (but might from others, i.e. ss[0] = 4 works).
Code Sample, a copy-pastable example if possible
Problem description
SparseSeries and SparseDataFrame don't support value assignment through some indexers (but might from others, i.e.
ss[0] = 4
works).Expected Output
Assignment works in all cases.
Output of
pd.show_versions()