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 00e315a commit d23b139Copy full SHA for d23b139
pandas/core/indexing.py
@@ -1095,9 +1095,9 @@ def _getitem_lowerdim(self, tup: tuple):
1095
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 create sub-DataFrame with preserved column dtypes
+ # First, get the column slice to preserve dtypes
1099
col_section = self._getitem_axis(col_slice, axis=1)
1100
- # Then get the specific row from this sub-DataFrame using appropriate indexer
+ # Then get the specific row from this sub-DataFrame
1101
if self.name == "iloc":
1102
result = col_section.iloc[row_key]
1103
else:
0 commit comments