Skip to content

Commit 8eed7e9

Browse files
Terji PetersenTerji Petersen
Terji Petersen
authored and
Terji Petersen
committed
fix test_feather.py
1 parent f0b93b9 commit 8eed7e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/io/feather_format.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from pandas.core.api import (
1919
DataFrame,
20-
Int64Index,
20+
NumericIndex,
2121
RangeIndex,
2222
)
2323
from pandas.core.shared_docs import _shared_docs
@@ -62,7 +62,7 @@ def to_feather(
6262
# validate that we have only a default index
6363
# raise on anything else as we don't serialize the index
6464

65-
if not isinstance(df.index, (Int64Index, RangeIndex)):
65+
if not (isinstance(df.index, NumericIndex) and df.index.dtype == "int64"):
6666
typ = type(df.index)
6767
raise ValueError(
6868
f"feather does not support serializing {typ} "

0 commit comments

Comments
 (0)