Skip to content

Commit 1dc8351

Browse files
committed
DOC: Add Raises section to pd.to_numeric docstring
1 parent 7c2796d commit 1dc8351

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/tools/numeric.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ def to_numeric(
114114
Numeric if parsing succeeded.
115115
Return type depends on input. Series if Series, otherwise ndarray.
116116
117+
Raises
118+
------
119+
ValueError
120+
If the conversion cannot be performed and `errors='raise'`.
121+
TypeError
122+
If the input type is not supported for conversion.
123+
117124
See Also
118125
--------
119126
DataFrame.astype : Cast argument to a specified dtype.

0 commit comments

Comments
 (0)