We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> ss = pd.SparseSeries([1, 2]) >>> ss.iloc[0] = 3 ----------------------------------------------------------------------- TypeError: SparseArray does not support item assignment via setitem
SparseSeries and SparseDataFrame don't support value assignment through some indexers (but might from others, i.e. ss[0] = 4 works).
ss[0] = 4
Assignment works in all cases.
pd.show_versions()
pandas 0.24.dev 5cb5880
The text was updated successfully, but these errors were encountered:
The same is true for Series[sparse]:
In [44]: ss = pd.Series(pd.SparseArray([1, 2])) ...: ss.iloc[0] = 3 ... TypeError: SparseArray does not support item assignment via setitem
Sorry, something went wrong.
No branches or pull requests
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()
pandas 0.24.dev 5cb5880
The text was updated successfully, but these errors were encountered: