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 5f2bc9e commit 703dda4Copy full SHA for 703dda4
pandas/core/indexes/base.py
@@ -5522,8 +5522,7 @@ def _should_fallback_to_positional(self) -> bool:
5522
if is_integer_dtype(self):
5523
return False
5524
elif is_object_dtype(self):
5525
- inferred_dtype = lib.infer_dtype(self._values, skipna=False)
5526
- return inferred_dtype not in ["integer", "mixed-integer"]
+ return self.inferred_type not in ["integer", "mixed-integer"]
5527
else:
5528
return True
5529
0 commit comments