Skip to content

Commit 9b15647

Browse files
committed
Undo change
1 parent d113faf commit 9b15647

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7435,7 +7435,7 @@ def maybe_sequence_to_range(sequence) -> Any | range:
74357435
elif len(sequence) == 1 or lib.infer_dtype(sequence, skipna=False) != "integer":
74367436
return sequence
74377437
elif isinstance(sequence, (ABCSeries, Index)) and not (
7438-
isinstance(sequence.dtype, np.dtype) and sequence.dtype.kind in "ui"
7438+
isinstance(sequence.dtype, np.dtype) and sequence.dtype.kind == "i"
74397439
):
74407440
return sequence
74417441
if len(sequence) == 0:

pandas/tests/io/parser/dtypes/test_dtypes_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,6 @@ def test_dtypes_with_usecols(all_parsers):
644644
tm.assert_frame_equal(result, expected)
645645

646646

647-
@xfail_pyarrow
648647
def test_index_col_with_dtype_no_rangeindex(all_parsers):
649648
data = StringIO("345.5,519.5,0\n519.5,726.5,1")
650649
result = all_parsers.read_csv(

0 commit comments

Comments
 (0)