We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d153bb commit 152c1edCopy full SHA for 152c1ed
pandas/core/tools/numeric.py
@@ -114,6 +114,13 @@ def to_numeric(
114
Numeric if parsing succeeded.
115
Return type depends on input. Series if Series, otherwise ndarray.
116
117
+ Raises
118
+ ------
119
+ ValueError
120
+ If the input contains non-numeric values and `errors='raise'`.
121
+ TypeError
122
+ If the input is not list-like, 1D, or scalar convertible to numeric,
123
+ such as nested lists or unsupported input types (e.g., dict).
124
See Also
125
--------
126
DataFrame.astype : Cast argument to a specified dtype.
0 commit comments