We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81fa6a3 commit 75edf05Copy full SHA for 75edf05
pandas/core/indexing.py
@@ -1092,7 +1092,7 @@ def _getitem_lowerdim(self, tup: tuple):
1092
# to preserve dtypes, then extracting the row
1093
# Otherwise, reverse tuple so that we are indexing along columns before rows
1094
# and avoid unintended dtype inference. # GH60600
1095
- if (len(tup) == 2 and is_scalar(tup[0]) and isinstance(tup[1], slice)):
+ if len(tup) == 2 and is_scalar(tup[0]) and isinstance(tup[1], slice):
1096
# Handle scalar row + slice columns case to preserve dtypes
1097
row_key, col_slice = tup[0], tup[1]
1098
# First, get the column slice to preserve dtypes
0 commit comments