From e3a38ba4b5e41433032b73481b7aa51bc3a56228 Mon Sep 17 00:00:00 2001 From: gfyoung Date: Fri, 25 Jan 2019 17:49:15 -0800 Subject: [PATCH] DOC: State that we support scalars in to_numeric We support it and test it already. xref gh-24910. --- pandas/core/tools/numeric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/tools/numeric.py b/pandas/core/tools/numeric.py index 803723dab46ff..79d8ee38637f9 100644 --- a/pandas/core/tools/numeric.py +++ b/pandas/core/tools/numeric.py @@ -21,7 +21,7 @@ def to_numeric(arg, errors='raise', downcast=None): Parameters ---------- - arg : list, tuple, 1-d array, or Series + arg : scalar, list, tuple, 1-d array, or Series errors : {'ignore', 'raise', 'coerce'}, default 'raise' - If 'raise', then invalid parsing will raise an exception - If 'coerce', then invalid parsing will be set as NaN