Skip to content

Commit 51a1a1e

Browse files
committed
DOC: pandas.Index.astype says it raises ValueError instead of TypeError pandas-dev#37012
1 parent 9787744 commit 51a1a1e

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)