Skip to content

Commit ec0e5e2

Browse files
committed
fix _should_fallback_to_positional
1 parent 474d327 commit ec0e5e2

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
@@ -228,10 +228,7 @@ def astype(self, dtype, copy=True):
228228

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

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

0 commit comments

Comments
 (0)