Skip to content

Commit bd9f060

Browse files
authored
DOC: Clarify to_numeric behavior for numeric dtypes (#61904)
1 parent 073710f commit bd9f060

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/tools/numeric.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def to_numeric(
5555
"""
5656
Convert argument to a numeric type.
5757
58-
The default return dtype is `float64` or `int64`
58+
If the input is already of a numeric dtype, the dtype will be preserved.
59+
For non-numeric inputs, the default return dtype is `float64` or `int64`
5960
depending on the data supplied. Use the `downcast` parameter
6061
to obtain other dtypes.
6162

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy