DEPR: Deprecate Index.set_value by topper-123 · Pull Request #28621 · pandas-dev/pandas (original) (raw)
- closes #xxxx
- tests added / passed
- passes
black pandas - passes
git diff upstream/master -u -- "*.py" | flake8 --diff - whatsnew entry
Deprecates Index.set_value. This is a very little used and confusing method IMO.
For a given index idx, array arr, value idx_val in idx and a new value of val, idx.set_value(arr, idx_val, val) is equivalent to arr[idx.get_loc(idx_val) = val, which is more standard and should be used instead.