We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0b93b9 commit 8eed7e9Copy full SHA for 8eed7e9
pandas/io/feather_format.py
@@ -17,7 +17,7 @@
17
18
from pandas.core.api import (
19
DataFrame,
20
- Int64Index,
+ NumericIndex,
21
RangeIndex,
22
)
23
from pandas.core.shared_docs import _shared_docs
@@ -62,7 +62,7 @@ def to_feather(
62
# validate that we have only a default index
63
# raise on anything else as we don't serialize the index
64
65
- if not isinstance(df.index, (Int64Index, RangeIndex)):
+ if not (isinstance(df.index, NumericIndex) and df.index.dtype == "int64"):
66
typ = type(df.index)
67
raise ValueError(
68
f"feather does not support serializing {typ} "
0 commit comments