API: should Series.get be strictly label based or allow positional? #17928
Labels
API Design
Indexing
Related to indexing on series/frames, not to indexes themselves
Needs Discussion
Requires discussion from core team before further action
The implementation of
Series.get
currenlty simply is:So it is simply using
[]
/__getitem__
under the hood.Somehow I think this is the expected thing, but the consequence is that it brings along all complexities of
__getitem__
in pandas (whether to fallback to positional or not ..).So, if we want, we could make
get
more strict by usingloc
under the hood (and it should be possible to do that with a deprecation in a first phase for those cases thatloc
raises but[]
returns a value).The text was updated successfully, but these errors were encountered: