Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pandas/core/tools/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ def to_numeric(
Numeric if parsing succeeded.
Return type depends on input. Series if Series, otherwise ndarray.

Raises
------
ValueError
If the input contains non-numeric values and `errors='raise'`.
TypeError
If the input is not list-like, 1D, or scalar convertible to numeric,
such as nested lists or unsupported input types (e.g., dict).

See Also
--------
DataFrame.astype : Cast argument to a specified dtype.
Expand Down
Loading