Skip to content

Commit e9edb5f

Browse files
committed
fix _should_fallback_to_positional
1 parent d9d35b3 commit e9edb5f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/indexes/numeric.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,7 @@ def astype(self, dtype, copy=True):
229229

230230
@doc(Index._should_fallback_to_positional)
231231
def _should_fallback_to_positional(self) -> bool:
232-
if is_float_dtype(self.dtype):
233-
return False
234-
else:
235-
return super()._should_fallback_to_positional()
232+
return False
236233

237234
@doc(Index._convert_slice_indexer)
238235
def _convert_slice_indexer(self, key: slice, kind: str):

0 commit comments

Comments
 (0)