diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py index bc45343d6e2d3..8c287dee685e6 100644 --- a/pandas/core/tools/numeric.py +++ b/pandas/core/tools/numeric.py @@ -114,6 +114,13 @@ def to_numeric( Numeric if parsing succeeded. Return type depends on input. Series if Series, otherwise ndarray. + Raises + ------ + ValueError + If the conversion cannot be performed and `errors='raise'`. + TypeError + If the input type is not supported for conversion. + See Also -------- DataFrame.astype : Cast argument to a specified dtype.