Skip to content

Commit 6e75d8c

Browse files
authored
DOC: pandas.Index.astype says it raises ValueError instead of TypeError pandas-dev#37012 (pandas-dev#37013)
1 parent c8aea2c commit 6e75d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ def astype(self, dtype, copy=True):
652652
Create an Index with values cast to dtypes.
653653
654654
The class of a new Index is determined by dtype. When conversion is
655-
impossible, a ValueError exception is raised.
655+
impossible, a TypeError exception is raised.
656656
657657
Parameters
658658
----------

0 commit comments

Comments
 (0)