+
    Ŝik*                    2   ^ RI Ht ^ RIHtHt ^ RIt^ RIHtH	t
 ^ RIHtHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHtHtHtHtHtHtHtHt ^ R
IHt ^ RI H!t!H"t" ^ RI#H$t$ ^ RI%H&t& ]'       d   ^ RI'H(t(H)t)H*t* ]! R4      RR]PV                  3R R ll4       t,R# )    )annotations)TYPE_CHECKINGLiteralN)libmissing)	Timedelta	Timestamp)
set_module)check_dtype_backend)maybe_downcast_numeric)	ensure_objectis_bool_dtype
is_decimalis_integer_dtype	is_numberis_numeric_dtype	is_scalaris_string_dtypeneeds_i8_conversion)
ArrowDtype)ABCIndex	ABCSeries)BaseMaskedArray)StringDtype)DateTimeErrorChoicesDtypeBackendnptpandasraisec               $    V ^8  d   QhRRRRRR/# )   errorsr   downcastz8Literal['integer', 'signed', 'unsigned', 'float'] | Nonedtype_backendzDtypeBackend | lib.NoDefault )formats   "b/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/pandas/core/tools/numeric.py__annotate__r(   3   s.     T T T GT 0	T    c           	        VR9  d   \        R4      hVR9  d   \        R4      h\        V4       RpRpRp\        V \        4      '       d   RpV P                  pEM*\        V \
        4      '       d=   Rp\        V P                  4      '       d   V P                  R	4      pMV P                  pM\        V \        \        34      '       d   \        P                  ! V R
R7      pM\        V 4      '       dt   \        V 4      '       d   \        V 4      # \!        V 4      '       d   V # \        V \"        \$        34      '       d   V P&                  # Rp\        P                  ! V .R
R7      pM\)        V R^4      ^8  d   \+        R4      hT pRp\        V\,        4      '       d!   VP.                  pVP0                  V( ,          p\)        VRR4      p	\        V	\2        4      '       d/   VP5                  4       pVP7                  4       P9                  4       pRp
\;        V	4      '       d   M\<        P>                  ! V	R4      '       d!   VP                  \        P@                  4      pM\C        V4      pVR8g  p\<        PD                  ! T\G        4       TV\<        PH                  J;'       g5    \        V	\J        4      ;'       d    V	PL                  \N        PP                  J R7      w  rzV
e   Wz( ,          pM|V\<        PH                  Jd   V
e5   \        V	\J        4      '       dO   V	PL                  \N        PP                  J d1   \        PR                  ! VPT                  \        PV                  R7      p
VEeS   \;        VP                  4      '       Ed7   RpVR9   d   \        PX                  R,          pMVR8X  dE   \[        V4      '       d   \        P\                  ! V4      ^ 8  d   \        PX                  R,          pMaVR8X  d[   \        PX                  R,          p\        P                  ! \        P^                  4      P`                  pVPc                  V4      pWR pVef   V F_  p\        P                  ! V4      pVPd                  VP                  Pd                  8:  g   K@  \g        VV4      pVP                  V8X  g   K_   M	  Vf   V
Ee-   \i        VP                  4      '       Eg   Ve    V
e   V
PT                  VPT                  8X  d   T
pMVPk                  4       p\        V\        Pl                  4      '       g   Q h\        PR                  ! VPT                  VP                  R7      pVVV( &   ^ RI7H8pH9pH:pH;p \y        VP                  4      '       d   TpM \{        VP                  4      '       d   TpMTpV! VV4      pVR8X  g   \        V	\2        4      '       d   V! VP}                  4       4      pV'       d(   V P                  WpPb                  V P                  R7      # V'       d   ^ RIAHBp V! WpP                  R7      # V'       d
   V^ ,          # V# )a  
Convert argument to a numeric type.

If the input is already of a numeric dtype, the dtype will be preserved.
For non-numeric inputs, the default return dtype is `float64` or `int64`
depending on the data supplied. Use the `downcast` parameter
to obtain other dtypes.

Please note that precision loss may occur if really large numbers
are passed in. Due to the internal limitations of `ndarray`, if
numbers smaller than `-9223372036854775808` (np.iinfo(np.int64).min)
or larger than `18446744073709551615` (np.iinfo(np.uint64).max) are
passed in, it is very likely they will be converted to float so that
they can be stored in an `ndarray`. These warnings apply similarly to
`Series` since it internally leverages `ndarray`.

Parameters
----------
arg : scalar, list, tuple, 1-d array, or Series
    Argument to be converted.

errors : {'raise', 'coerce'}, default 'raise'
    - If 'raise', then invalid parsing will raise an exception.
    - If 'coerce', then invalid parsing will be set as NaN.

downcast : str, default None
    Can be 'integer', 'signed', 'unsigned', or 'float'.
    If not None, and if the data has been successfully cast to a
    numerical dtype (or if the data was numeric to begin with),
    downcast that resulting data to the smallest numerical dtype
    possible according to the following rules:

    - 'integer' or 'signed': smallest signed int dtype (min.: np.int8)
    - 'unsigned': smallest unsigned int dtype (min.: np.uint8)
    - 'float': smallest float dtype (min.: np.float32)

    As this behaviour is separate from the core conversion to
    numeric values, any errors raised during the downcasting
    will be surfaced regardless of the value of the 'errors' input.

    In addition, downcasting will only occur if the size
    of the resulting data's dtype is strictly larger than
    the dtype it is to be cast to, so if none of the dtypes
    checked satisfy that specification, no downcasting will be
    performed on the data.

dtype_backend : {'numpy_nullable', 'pyarrow'}
    Back-end data type applied to the resultant :class:`DataFrame`
    (still experimental). If not specified, the default behavior
    is to not use nullable data types. If specified, the behavior
    is as follows:

    * ``"numpy_nullable"``: returns nullable-dtype-backed object
    * ``"pyarrow"``: returns with pyarrow-backed nullable object

    .. versionadded:: 2.0

Returns
-------
ret
    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.
to_datetime : Convert argument to datetime.
to_timedelta : Convert argument to timedelta.
numpy.ndarray.astype : Cast a numpy array to a specified type.
DataFrame.convert_dtypes : Convert dtypes.

Examples
--------
Take separate series and convert to numeric, coercing when told to

>>> s = pd.Series(["1.0", "2", -3])
>>> pd.to_numeric(s)
0    1.0
1    2.0
2   -3.0
dtype: float64
>>> pd.to_numeric(s, downcast="float")
0    1.0
1    2.0
2   -3.0
dtype: float32
>>> pd.to_numeric(s, downcast="signed")
0    1
1    2
2   -3
dtype: int8
>>> s = pd.Series(["apple", "1.0", "2", -3])
>>> pd.to_numeric(s, errors="coerce")
0    NaN
1    1.0
2    2.0
3   -3.0
dtype: float64

Downcasting of nullable integer and floating dtypes is supported:

>>> s = pd.Series([1, 2, 3], dtype="Int64")
>>> pd.to_numeric(s, downcast="integer")
0    1
1    2
2    3
dtype: Int8
>>> s = pd.Series([1.0, 2.1, 3.0], dtype="Float64")
>>> pd.to_numeric(s, downcast="float")
0    1.0
1    2.1
2    3.0
dtype: Float32
Nunsignedfloatz#invalid downcasting method providedr   zinvalid error value specifiedFTi8O)dtypendimz/arg must be a list, tuple, 1-d array, or Seriesr/   mM)coerce_numericconvert_to_masked_nullableIntegerUnsignedIntegerFloat)ArrowExtensionArrayBooleanArrayFloatingArrayIntegerArraypyarrow)indexname)Index)r=   )Nintegersignedr+   r,   )r   coerce)r?   r@   )C
ValueErrorr   
isinstancer   valuesr   r   r/   viewlisttuplenparrayr   r   r,   r   r   r	   _valuegetattr	TypeErrorr   _mask_datar   isnadropnato_numpyr   r   is_np_dtypeint64r   maybe_convert_numericset
no_defaultr   na_value
libmissingNAzerosshapebool_	typecodeslenminfloat32charr<   itemsizer   r   copyndarraypandas.core.arraysr7   r8   r9   r:   r   r   __arrow_array___constructorr=   r   r>   )argr"   r#   r$   	is_seriesis_index
is_scalarsrD   maskvalues_dtypenew_maskr2   r]   float_32_charfloat_32_indtypecoder/   datar7   r8   r9   r:   klassr>   s   &&&&                    r'   
to_numericrt   2   s   B GG>??((899&IHJ#y!!		C	"	"syy))XXd^FZZF	C$	'	'#S)	3c??:S>>JcIy122::
3%s+	fa	 1	$IJJ *.D&/**||te$67D1L,
++{{}))+"&H%%	t	,	,RXX&v&7*44E)'4CNN'J ( (<5 ; ; ))Z]]:	
  	"
s~~
-(2B<--,2G2G:==2X88FLL9  0 > > $	,,Y/I#S[[BFF6Na<O%67I W-I
 HHRZZ055M$??=9L!-0I %*>>V\\%:%::3FEBF ||u, & 	H0/&,,:W:W<H0X^^tzz5QD99;D$

++++xx

&,,7dU	
 	
 DJJ'' E4::&& E!EtT"I%L*)M)M()?)?)ABFiichhGG	 	!V((++	ayr)   )-
__future__r   typingr   r   numpyrH   pandas._libsr   r   rX   pandas._libs.tslibsr   r	   pandas.util._decoratorsr
   pandas.util._validatorsr   pandas.core.dtypes.castr   pandas.core.dtypes.commonr   r   r   r   r   r   r   r   r   pandas.core.dtypes.dtypesr   pandas.core.dtypes.genericr   r   re   r   pandas.core.arrays.string_r   pandas._typingr   r   r   rV   rt   r%   r)   r'   <module>r      s    "
  / 7 :
 
 
 1
 / 2  H $+IM25..	T Tr)   