Closed
Description
Location of the documentation
The documentation is located at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.astype.html
Documentation problem
The documentation says " When conversion is impossible, a ValueError exception is raised." However, checking the code it can be seen that a TypeError is raised instead of ValueError.
Suggested fix for documentation
Just change ValueError to TypeError in the docstring.