+
    Ŝi&                    
   ^ RI Ht ^ RIt^ RIHtHtHt ^ RIt^ RI	H
t
 ^ RIHtHt ^ RIHt ^ RIHt ^ RIHtHtHt ^ R	IHtHt ]'       d   ^ R
IHtHt ^ RIt^ RIHtH t  ^ RI!H"t"  ! R R]4      t#R R lt$ ! R R]4      t%R# )    )annotationsN)TYPE_CHECKINGAnySelf)	is_nan_na)libmissingAbstractMethodError)cache_readonly)is_integer_dtypeis_string_dtypepandas_dtype)BaseMaskedArrayBaseMaskedDtype)CallableMapping)DtypeObjnpt)ExtensionDtypec                      ] tR t^0t$ R]R&   R]R&   R R lt]R R l4       t]R	 R
 l4       t]	R R l4       t
R R lt]R R l4       t]R R l4       t]R R l4       tRtR# )NumericDtypenp.dtype_default_np_dtypezCallable[[Any], bool]_checkerc                   V ^8  d   QhRR/# )   returnstr )formats   "c/Users/mibo/.openclaw/workspace/.venv-ak/lib/python3.14/site-packages/pandas/core/arrays/numeric.py__annotate__NumericDtype.__annotate__4   s     % %# %    c                	     V P                    R 2# )zDtype())nameselfs   &r"   __repr__NumericDtype.__repr__4   s    ))G$$r%   c                   V ^8  d   QhRR/# r   r   boolr    )r!   s   "r"   r#   r$   8   s        4  r%   c                	     V P                   R 8H  # )ikindr(   s   &r"   is_signed_integerNumericDtype.is_signed_integer7       yyCr%   c                   V ^8  d   QhRR/# r-   r    )r!   s   "r"   r#   r$   <   s        T  r%   c                	     V P                   R 8H  # )ur1   r(   s   &r"   is_unsigned_integer NumericDtype.is_unsigned_integer;   r5   r%   c                   V ^8  d   QhRR/# r-   r    )r!   s   "r"   r#   r$   @   s      T r%   c                	    R # )Tr    r(   s   &r"   _is_numericNumericDtype._is_numeric?   s    r%   c                    V ^8  d   QhRRRR/# )r   arrayz$pyarrow.Array | pyarrow.ChunkedArrayr   r   r    )r!   s   "r"   r#   r$   C   s     $; $;9$;	$;r%   c                   ^ RI p^ RIHp V P                  4       pVP                  ! V P
                  4      pVP
                  P                  V4      '       g   VP                  P                  VP
                  4      '       gb   \        VP
                  P                  4       4      pVP                  R9  d   \        RV  RVP
                   R24      hVP                  V4      p\        WP                  4      '       d   VP!                  4       pV! WP"                  R7      w  rxVP$                  P                  R8X  d*   \'        4       '       d   R	V\(        P*                  ! V4      &   V! VP-                  4       V( R	R
7      # )zG
Construct IntegerArray/FloatingArray from pyarrow Array/ChunkedArray.
N)pyarrow_array_to_numpy_and_maskiufzExpected array of z type, got z insteaddtypefFcopy)pyarrow%pandas.core.arrays.arrow._arrow_utilsrB   construct_array_typefrom_numpy_dtypetypeequalstypesis_nullr   to_pandas_dtyper2   	TypeErrorcast
isinstanceChunkedArraycombine_chunksnumpy_dtyperE   r   npisnanrH   )	r)   r@   rI   rB   array_classpyarrow_typert_dtypedatamasks	   &&       r"   __from_arrow__NumericDtype.__from_arrow__C   s,    		
 //1//		:zz  ..w}}7L7LJJ8
 8

 $EJJ$>$>$@AH}}E)  (k%**XN  JJ|,Ee1122((*E4UBRBRS
::??c!ikk#(D$ 499;E::r%   c                   V ^8  d   QhRR/# )r   r   zMapping[np.dtype, NumericDtype]r    )r!   s   "r"   r#   r$   j   s     ' '#B 'r%   c                	    \        V 4      hNr
   )clss   &r"   _get_dtype_mappingNumericDtype._get_dtype_mappingi   s    !#&&r%   c                    V ^8  d   QhRRRR/# )r   rE   zNumericDtype | str | np.dtyper   r   r    )r!   s   "r"   r#   r$   n   s      'D  r%   c                P   \        V\        4      '       d(   VP                  R4      '       d   VP                  4       p\        V\        4      '       g1   V P                  4       p V\        P                  ! V4      ,          pV# V#   \         d   p\        RT 24      ThRp?ii ; i)zC
Convert a string representation or a numpy dtype to NumericDtype.
zinvalid dtype specified N)IntUIntFloat)
rT   r   
startswithlowerr   re   rX   rE   KeyError
ValueError)rd   rE   mappingerrs   &&  r"   _standardize_dtypeNumericDtype._standardize_dtypem   s    
 eS!!u'7'78P'Q'Q KKME%..,,.GN0 u  N #;E7!CD#MNs   %B B%B  B%c               (    V ^8  d   QhRRRRRRRR/# )r   values
np.ndarrayrE   r   rH   r.   r   r    )r!   s   "r"   r#   r$      s(     ' '
 '8 '4 'J 'r%   c                    \        V 4      h)zc
Safely cast the values to the given dtype.

"safe" in this context means the casting is lossless.
r
   )rd   ru   rE   rH   s   &&&&r"   
_safe_castNumericDtype._safe_cast   s     "#&&r%   r    N)__name__
__module____qualname____firstlineno____annotations__r*   r   r3   r9   propertyr=   r_   classmethodre   rr   rx   __static_attributes__r    r%   r"   r   r   0   s    ##%          $;L ' '  " ' 'r%   r   c                    V ^8  d   QhRRRR/# )r   rH   r.   	dtype_clstype[NumericDtype]r    )r!   s   "r"   r#   r#      s     p p$ pCU pr%   c                   VP                   pVP                  pR pR pVf7   \        V R4      '       d%   V! V P                  4      '       d   V P                  pVe   VP	                  V4      pV! 4       P                  4       p\        W4      '       dd   V P                  V P                  r`Ve   V P                  VP                  RR7      p V'       d!   V P                  4       p VP                  4       pW3# T p	V'       g   \        P                  ! V 4      p M\        P                  ! WR7      p R pV P                  \        8X  g   \!        V P                  4      '       dZ   \"        P$                  ! V RR7      pVR8X  d:   Vf6   VP&                  P)                  R4      p
\+        V P                   RV
 24      hMV P                  P,                  R	8X  dw   V! V4      '       di   \        P.                  ! \1        V 4      \        P2                  R
7      pV'       g   \        P                  ! WR
7      p Mi\        P                  ! WVR7      p MPV P                  P,                  R9  d6   VP&                  P)                  R4      p
\+        V P                   RV
 24      hV P4                  ^8w  d   \+        R4      hVEf{   V P                  P,                  R9   d2   \        P.                  ! \1        V 4      \        P2                  R
7      pEMIV P                  P,                  R8X  d   \7        4       '       d   \        P8                  ! V 4      pEM\        P.                  ! \1        V 4      \        P2                  R
7      pVP&                  P)                  R4      P;                  R4      '       d8   \        P8                  ! V 4      pVP=                  4       '       d   \?        R4      hMo\7        4       '       d   \@        PB                  ! V 4      pMH\@        PB                  ! V 4       \@        PD                  ! V 4      pM\1        V4      \1        V 4      8X  g   Q hVP4                  ^8w  d   \+        R4      hVf   TpMVP                  p\G        V4      '       d   V P                  P,                  R8X  d   \1        V 4      ^ 8  d   VPI                  4       '       d$   \        PJ                  ! V PL                  VR
7      p M\        PN                  ! V 4      p\Q        W,          4      W,          8w  df   \"        P$                  ! V	RR7      pVR9  d/   VP=                  4       '       g   \        P                  ! WR
7      p M\        P                  ! V	RR
7      p VP=                  4       '       d   V P                  4       p VPR                  W&   VR9   d   V P                  WR7      p W3# VPU                  WRR7      p W3# )NrE   FrG   T)skipnaboolean_z cannot be converted to brD   rE   rH   rC   zvalues must be a 1D list-likeiurF   z'Cannot cast NaN value to Integer dtype.zmask must be a 1D list-likeobject)IU)floatingzmixed-integer-float)stringunicode)+r   r   hasattrrE   rr   rK   rT   _data_maskastyperW   rH   rX   asarrayr@   r   r   r   infer_dtyperz   striprR   r2   zeroslenbool_ndimr   rY   rl   anyro   
libmissingis_numeric_nais_pdna_or_noner   allonesshape	nanargmaxint_internal_fill_valuerx   )ru   rE   rH   r   checkerdefault_dtyper^   inferred_typerd   originalr'   wrongidxs   &&&&         r"   _coerce_to_data_and_maskr      sK     G//MDM}116<<  LLE,,U3
+
*
*
,C&||V\\]]5#4#45]AF[[]F99;D|HF#&,M||v!>!>t<I%%-%%++C0Dv||n,DTFKLL			c	!gennxxF2884ZZ<FXXfEF			%	'!!'',6<<.(@GHH{{a788|<<$88CKrxx8D\\#% {{xx'xxF288<%%++C0;;JGGHHV,Eyy{{()RSS[[++F3D $$V,--f5D4yCK'''yyA~566 }!!6<<#4#4#;Fa88::WWV\\7F,,v&C6;8=0 # F!)LL HHJJZZ>FZZAF xxzz 55-- u0 < %%f%%@<r%   c                     a  ] tR t^t$ RtR]R&   RR V 3R lllt]R R l4       t]	R	R/R
 R ll4       t
]	R	R/R R ll4       t]P                  ]P                  3tRtV ;t# )NumericArrayz0
Base class for IntegerArray and FloatingArray.
r   
_dtype_clsFc               (    V ^8  d   QhRRRRRRRR/# )	r   ru   rv   r^   znpt.NDArray[np.bool_]rH   r.   r   Noner    )r!   s   "r"   r#   NumericArray.__annotate__  s,     2 2 2(=2EI2	2r%   c                	v  < V P                   P                  p\        V\        P                  4      '       d   V! VP
                  4      '       g/   V P                   P                  R 8X  d   RMRp\        RV R24      hVP
                  \        P                  8X  d   \        R4      h\        SV `)  WVR7       R# )rF   r   integerzvalues should be z1 numpy array. Use the 'pd.array' function insteadz0FloatingArray does not support np.float16 dtype.rG   N)r   r   rT   rX   ndarrayrE   r2   rR   float16super__init__)r)   ru   r^   rH   r   descr	__class__s   &&&&  r"   r   NumericArray.__init__  s     //**62::..76<<3H3H ??''3.  
 #E7 +2 2  <<2::%NOO 	D1r%   c                   V ^8  d   QhRR/# )r   r   r   r    )r!   s   "r"   r#   r     s     ) )| )r%   c                	n    V P                   P                  4       pWP                  P                  ,          # rc   )r   re   r   rE   )r)   rp   s   & r"   rE   NumericArray.dtype  s'    //446zz''((r%   rH   c               $    V ^8  d   QhRRRRRR/# )r   rE   r   rH   r.   r   ztuple[np.ndarray, np.ndarray]r    )r!   s   "r"   r#   r   !  s$      &.2	&r%   c               	<    V P                   p\        WW44      w  rVWV3# rc   )r   r   )rd   valuerE   rH   r   ru   r^   s   &&$$   r"   _coerce_to_arrayNumericArray._coerce_to_array   s#     NN	/dN|r%   c               $    V ^8  d   QhRRRRRR/# )r   rE   r   rH   r.   r   r   r    )r!   s   "r"   r#   r   )  s)     C C .C6:C	Cr%   c               	J    ^ RI Hp V! VRRR7      pV P                  WRVR7      # )r   )
to_numericraisenumpy_nullable)errorsdtype_backendr   )pandas.core.tools.numericr   _from_sequence)rd   stringsrE   rH   r   scalarss   &&$$  r"   _from_sequence_of_strings&NumericArray._from_sequence_of_strings(  s,     	9WWDTU!!'T!BBr%   r    )F)rz   r{   r|   r}   __doc__r~   r   r   rE   r   r   r   rX   r   numbersNumber_HANDLED_TYPESr   __classcell__)r   s   @r"   r   r      s}     #"2 20 ) ) 5:  C=BC C jj'..1Nr%   r   )&
__future__r   r   typingr   r   r   numpyrX   pandas._configr   pandas._libsr   r	   r   pandas.errorsr   pandas.util._decoratorsr   pandas.core.dtypes.commonr   r   r   pandas.core.arrays.maskedr   r   collections.abcr   r   rI   pandas._typingr   r   pandas.core.dtypes.dtypesr   r   r   r   r    r%   r"   <module>r      st    "    $ . 2 
 
 
 9V'? V'rpf52? 52r%   