-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
Description
Code Sample, a copy-pastable example if possible
>>> 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).
Expected Output
Assignment works in all cases.
Output of pd.show_versions()
pandas 0.24.dev 5cb5880
mijamo, MTKnife, Ohems and wulftone