You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DEPR: deprecate returning a tuple from a callable in iloc indexing (#53769)
* DEPR: deprecate returning a tuple from a callable in iloc indexing
The current semantics are that tuple-destructuring of the key is
performed before unwinding any callables. As such, if a callable
returns a tuple for iloc, it will be handled incorrectly. To avoid
this, explicitly deprecate support for this behaviour.
Closes#53533.
* Update documentation and add test
* Refactor check into method
* Link to docs in whatsnew entry
* Move deprecation warning so docstring checks don't complain
* Prelim changes
* Update pandas/core/indexing.py
* Adjust test
---------
Co-authored-by: Matthew Roeschke <[email protected]>
0 commit comments