-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters