DEPR: Series.getitem, Series.setitem · Issue #50617 · pandas-dev/pandas (original) (raw)

Trying to guess whether e.g. ser[2], ser[:2] is intended to be positional or label-based is a hassle, and in the slicing case we are inconsistent about it. Let's get rid of this problem once and for all by deprecating these and telling users to use loc or iloc instead.

Discussed in #49612