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 43711d5 commit 2c89a91Copy full SHA for 2c89a91
pandas/core/tools/numeric.py
@@ -114,6 +114,14 @@ 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
+
125
See Also
126
--------
127
DataFrame.astype : Cast argument to a specified dtype.
0 commit comments