Skip to content

Commit f49f905

Browse files
committed
DOC: doc fix for feather_format error message text
1 parent cd24fa9 commit f49f905

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/io/feather_format.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,16 @@ def to_feather(df, path):
5656
# raise on anything else as we don't serialize the index
5757

5858
if not isinstance(df.index, Int64Index):
59-
raise ValueError("feather does not serializing {} "
59+
raise ValueError("feather does not support serializing {} "
6060
"for the index; you can .reset_index()"
6161
"to make the index into column(s)".format(
6262
type(df.index)))
6363

6464
if not df.index.equals(RangeIndex.from_range(range(len(df)))):
65-
raise ValueError("feather does not serializing a non-default index "
66-
"for the index; you can .reset_index()"
67-
"to make the index into column(s)")
65+
raise ValueError("feather does not support serializing a "
66+
"non-default index for the index; you "
67+
"can .reset_index() to make the index "
68+
"into column(s)")
6869

6970
if df.index.name is not None:
7071
raise ValueError("feather does not serialize index meta-data on a "

0 commit comments

Comments
 (0)