Skip to content

Commit 75edf05

Browse files
author
GitHub Actions
committed
Remove unnecessary parentheses
1 parent 81fa6a3 commit 75edf05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ def _getitem_lowerdim(self, tup: tuple):
10921092
# to preserve dtypes, then extracting the row
10931093
# Otherwise, reverse tuple so that we are indexing along columns before rows
10941094
# and avoid unintended dtype inference. # GH60600
1095-
if (len(tup) == 2 and is_scalar(tup[0]) and isinstance(tup[1], slice)):
1095+
if len(tup) == 2 and is_scalar(tup[0]) and isinstance(tup[1], slice):
10961096
# Handle scalar row + slice columns case to preserve dtypes
10971097
row_key, col_slice = tup[0], tup[1]
10981098
# First, get the column slice to preserve dtypes

0 commit comments

Comments
 (0)