hyb
2025-12-30 5e753a15ff53faab2261a53367e44d38caf87041
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Ë
nñúh»ãó2—dZddlmZddlZddlZddlmZddlm    Z    m
Z
m Z ddl Z ejrddlmZidd“d    d
“d d “d d“dd“dd“dd“dd“dd“dd“dd“dd“dd“d d!“d"d#“d$d%“d&d'“d(d)d*d+d,d-d.d/d0d1d2d3d4d5œ ¥ZGd6„d7«ZGd8„d9«Zd<d:„Zd=d;„Zy)>zE
Utility functions and objects for implementing the interchange API.
é)Ú annotationsN)Úlib)Ú
ArrowDtypeÚCategoricalDtypeÚDatetimeTZDtype)ÚDtypeObjÚnullÚnÚboolÚbÚuint8ÚCÚuint16ÚSÚuint32ÚIÚuint64ÚLÚint8ÚcÚint16Úint32ÚiÚint64ÚlÚ    halffloatÚeÚfloatÚfÚdoubleÚgÚstringÚuÚ large_stringÚUÚbinaryÚzz    time32[s]ÚttsÚttmÚttuÚttnÚtdDÚtdmztss:ztsm:ztsu:ztsn:ÚtDsÚtDmÚtDuÚtDn) z
time32[ms]z
time64[us]z
time64[ns]z date32[day]z
date64[ms]z timestamp[s]z timestamp[ms]z timestamp[us]z timestamp[ns]z duration[s]z duration[ms]z duration[us]z duration[ns]có\—eZdZdZdZdZdZdZdZdZ    dZ
d    Z d
Z d Z d Zd ZdZdZdZdZdZdZdZy)Ú ArrowCTypesz¹
    Enum for Apache Arrow C type format strings.
 
    The Arrow C data interface:
    https://arrow.apache.org/docs/format/CDataInterface.html#data-type-description-format-strings
    r
r rrÚsrrrrrrrr!r#r%r,r-zts{resolution}:{tz}ztt{resolution}N)Ú__name__Ú
__module__Ú __qualname__Ú__doc__ÚNULLÚBOOLÚINT8ÚUINT8ÚINT16ÚUINT16ÚINT32ÚUINT32ÚINT64ÚUINT64ÚFLOAT16ÚFLOAT32ÚFLOAT64ÚSTRINGÚ LARGE_STRINGÚDATE32ÚDATE64Ú    TIMESTAMPÚTIME©óúPH:\Change_password\venv_build\Lib\site-packages\pandas/core/interchange/utils.pyr3r3=sj„ñð €DØ €DØ €DØ €EØ €EØ €FØ €EØ €FØ €EØ €FØ€GØ€GØ€GØ €FØ€LØ €FØ €Fð &€IØ DrMr3có —eZdZdZdZdZdZdZy)Ú
Endiannessz.Enum indicating the byte-order of a data-type.ú<ú>ú=ú|N)r5r6r7r8ÚLITTLEÚBIGÚNATIVEÚNArLrMrNrPrP_s„Ù8à €FØ
€CØ €FØ     BrMrPcóf—t|t«rtjS|t    j
d«k(rtj St|t«r°ddl}|j}|jj|«rd|j›d|j›S|jj|«r+|jd|j d›d|j›St"j%t'|«d«}||St)t|j*j-«d«}||St|t.j0«rtj St3j4|d«r<t    j6|«dd}tj8j;|d    ¬
«St|t<«r8tj8j;|j d|j¬
«St|t.j>«rtj@StCd |›d «‚) a 
    Represent pandas `dtype` as a format string in Apache Arrow C notation.
 
    Parameters
    ----------
    dtype : np.dtype
        Datatype of pandas DataFrame to represent.
 
    Returns
    -------
    str
        Format string in Apache Arrow C notation of the given `dtype`.
    ÚOrNzd:ú,Útsú:ÚMÚ)Ú
resolutionÚtzzConversion of z- to Arrow C format string is not implemented.)"Ú
isinstancerr3rAÚnpÚdtyperFrÚpyarrowÚ pyarrow_dtypeÚtypesÚ
is_decimalÚ    precisionÚscaleÚ is_timestampraÚunitÚPYARROW_CTYPESÚgetÚstrÚgetattrÚnameÚupperÚpdÚ StringDtyperÚ is_np_dtypeÚ datetime_datarJÚformatrÚ BooleanDtyper:ÚNotImplementedError)rdÚpaÚpa_typeÚ
format_strr`s     rNÚdtype_to_arrow_c_fmtr}hsË€ô%Ô)Ô*ÜנѠРؠ   ”"—(‘(˜3“-Ò    Ü×!Ñ!Ð!Ü    Eœ:Ô    &Ûà×%Ñ%ˆØ 8‰8× Ñ ˜wÔ 'ؘ×)Ñ)Ð*¨!¨G¯M©M¨?Ð;Ð ;Ø X‰X× "Ñ " 7Ô +°·
±
Ð0FؘŸ ™  Q™Ð(¨¨'¯*©*¨Ð6Ð 6Ü#×'Ñ'¬¨G« °dÓ;ˆ
Ø Ð !ØÐ 䜠e§j¡j×&6Ñ&6Ó&8¸$Ó?€JØÐØÐä%œŸ™Ô(ô×!Ñ!Ð!ä     ‰˜ Ô    $ô×%Ñ% eÓ,¨QÑ/°Ñ2ˆ
Ü×$Ñ$×+Ñ+°zÀbÐ+ÓIÐIä    Eœ?Ô    +Ü×$Ñ$×+Ñ+°u·z±zÀ!±}ÈÏÉÐ+ÓRÐRä    Eœ2Ÿ?™?Ô    +Ü×ÑÐä
˜˜ÐLÐMó ðrMcóR—t|jtj«sy|jj
}t |j«dk(ry|s td«‚|j«}tj||j|j|j¬«S)aË
    Rechunk a multi-chunk pyarrow array into a single-chunk array, if necessary.
 
    - Returns `None` if the input series is not backed by a multi-chunk pyarrow array
      (and so doesn't need rechunking)
    - Returns a single-chunk-backed-Series if the input is backed by a multi-chunk
      pyarrow array and `allow_copy` is `True`.
    - Raises a `RuntimeError` if `allow_copy` is `False` and input is a
      based by a multi-chunk pyarrow array.
    NézŒFound multi-chunk pyarrow array, but `allow_copy` is False. Please rechunk the array before calling this function, or set `allow_copy=True`.)rdrqÚindex) rbrdrsrÚarrayÚ    _pa_arrayÚlenÚchunksÚ RuntimeErrorÚcombine_chunksÚSeriesrqr€)ÚseriesÚ
allow_copyÚ chunked_arrayÚarrs    rNÚ maybe_rechunkrŒ s„€ô f—l‘l¤B§M¡MÔ 2ØØ—L‘L×*Ñ*€MÜ
ˆ=× Ñ Ó  AÒ%ØÙ Üð !ó
ð    
ð
(€CÜ 9‰9S § ¡ °6·;±;ÀfÇlÁlÔ SÐSrM)rdrÚreturnro)rˆz    pd.Seriesr‰r rzpd.Series | None)r8Ú
__future__rÚtypingÚnumpyrcÚ pandas._libsrÚpandas.core.dtypes.dtypesrrrÚpandasrsÚ TYPE_CHECKINGÚpandas._typingrrmr3rPr}rŒrLrMrNú<module>r–sRðñõ#ã ãå÷ñó à    ×ÒÝ'ð
Ø
ˆCðà
ˆCðð ˆSðð ˆcð    ð
 ˆcð ð  ˆcð ð ˆCðð ˆSðð ˆSðð ˆSðððð ˆSðð ˆcðð ˆcððCðð  ˆcð!ð"ð#ð$ØØØØØØØØØØØØò=€÷Dñ÷D ñ ó5ôpTrM