Skip to content

Commit 9c7d57b

Browse files
committed
fix _should_fallback_to_positional
1 parent c1633fb commit 9c7d57b

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
@@ -252,10 +252,7 @@ def astype(self, dtype, copy=True):
252252
@cache_readonly
253253
@doc(Index._should_fallback_to_positional)
254254
def _should_fallback_to_positional(self) -> bool:
255-
if is_float_dtype(self.dtype):
256-
return False
257-
else:
258-
return super()._should_fallback_to_positional()
255+
return False
259256

260257
@doc(Index._convert_slice_indexer)
261258
def _convert_slice_indexer(self, key: slice, kind: str):

0 commit comments

Comments
 (0)