-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor DataFrame.__getitem__ (#2134)
* added a test covering all one-dimensional uses. Most were hit already by other tests, but good to have this in a single place. The tuple input (2D) is to be tested in a future PR. * moved around some logic for numpy ndarray, it was confusing as some code path could not be hit at all. * added type overloads so a user no longer loses typing the moment this method is used. This has led in various places in the tests for type warnings to pop up, some I could not fix/didnt fully understand, added ignores in those cases.
- Loading branch information
Showing
4 changed files
with
133 additions
and
40 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
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