Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0f5c899

Browse files
committedNov 6, 2022
Remove tuple from DataFrame.__getitem__ -> DataFrame argument as it is a valid column name, which produces a Series
1 parent bd0e9ba commit 0f5c899

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎pandas-stubs/core/frame.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,7 @@ class DataFrame(NDFrame, OpsMixin):
497497
@overload
498498
def __getitem__(
499499
self,
500-
idx: tuple
501-
| Series[_bool]
500+
idx: Series[_bool]
502501
| DataFrame
503502
| list[_str]
504503
| list[ScalarT]

0 commit comments

Comments
 (0)
Please sign in to comment.