hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Ë
oñúh`ãóܗddlmZddlZddlZddlZddlZddlmZmZm    Z    ddl
Z
ddl Z ddl m Z mZddlmZddlZddlmZerddlmZmZddlmZmZ    d                     dd    „Zd dd
„Zd dd „Zddd „Zy)é)Ú annotationsN)Ú TYPE_CHECKINGÚAnyÚCallable)Ú get_bz2_fileÚ get_lzma_file)Úimport_optional_dependency)Ú ensure_clean)ÚFilePathÚReadPickleBuffer)Ú    DataFrameÚSeriescóҗ|}|€dtj«›d}t|«5}tj||«tj
|«cddd«S#1swYyxYw)a
    Pickle an object and then read it again.
 
    Parameters
    ----------
    obj : any object
        The object to pickle and then re-read.
    path : str, path object or file-like object, default None
        The path where the pickled object is written and then read.
 
    Returns
    -------
    pandas object
        The original object that was pickled and then re-read.
    NÚ__z    __.pickle)ÚuuidÚuuid4r
ÚpdÚ    to_pickleÚ read_pickle)ÚobjÚpathÚ_pathÚ    temp_paths    úFH:\Change_password\venv_build\Lib\site-packages\pandas/_testing/_io.pyÚround_trip_pickler's[€ð$ €EØ €}Ø”T—Z‘Z“\N )Ð,ˆÜ    eÓ    ð)     Ü
 ‰ S˜)Ô$܏~‰~˜iÓ(÷)÷)ò)ús ¨+AÁA&có¨—tj}|€d}t|«5}|||««|||««}ddd«|S#1swYSxYw)aÛ
    Write an object to file specified by a pathlib.Path and read it back
 
    Parameters
    ----------
    writer : callable bound to pandas object
        IO writing function (e.g. DataFrame.to_csv )
    reader : callable
        IO reading function (e.g. pd.read_csv )
    path : str, default None
        The path where the object is written and then read.
 
    Returns
    -------
    pandas object
        The original object that was serialized and then re-read.
    NÚ ___pathlib___)ÚpathlibÚPathr
)ÚwriterÚreaderrrrs     rÚround_trip_pathlibr"AsY€ô$ <‰<€DØ €|؈ܠ   dÓ    ð!˜tÙ‰tD‹zÔÙ‘T˜$“ZÓ ˆ÷!ð €J÷!ð €Jús  AÁAcóƗddl}|jd«j}|€d}t|«5}|||««|||««}ddd«|S#1swYSxYw)aá
    Write an object to file specified by a py.path LocalPath and read it back.
 
    Parameters
    ----------
    writer : callable bound to pandas object
        IO writing function (e.g. DataFrame.to_csv )
    reader : callable
        IO reading function (e.g. pd.read_csv )
    path : str, default None
        The path where the object is written and then read.
 
    Returns
    -------
    pandas object
        The original object that was serialized and then re-read.
    rNzpy.pathÚ___localpath___)ÚpytestÚ importorskipÚlocalr
)r r!rr%Ú    LocalPathrs      rÚround_trip_localpathr)\si€ó$à×#Ñ# IÓ.×4Ñ4€IØ €|Ø ˆÜ    dÓ    ð&˜tÙ‰y˜‹ÔÙ‘Y˜t“_Ó%ˆ÷&ð €J÷&ð €Jús ¯AÁA có—|f}d}d}|dk(rtj}d}||f}d}n¸|dk(rTtj}d}tj|¬«}t j |«}    t|«|_||    f}d}n_|d    k(rtj}nI|d
k(r t«}n9|d k(rtd «j}n|d k(r t«}ntd|›«‚|||¬«5}
t!|
|«|Žddd«y#1swYyxYw)a¦
    Write data to a compressed file.
 
    Parameters
    ----------
    compression : {'gzip', 'bz2', 'zip', 'xz', 'zstd'}
        The compression type to use.
    path : str
        The file path to write the data.
    data : str
        The data to write.
    dest : str, default "test"
        The destination file (for ZIP only)
 
    Raises
    ------
    ValueError : An invalid compression value was passed in.
    ÚwbÚwriteÚzipÚwÚwritestrÚtar)ÚnameÚaddfileÚgzipÚbz2ÚzstdÚ    zstandardÚxzzUnrecognized compression type: )ÚmodeN)ÚzipfileÚZipFileÚtarfileÚTarFileÚTarInfoÚioÚBytesIOÚlenÚsizer3ÚGzipFilerr    ÚopenrÚ
ValueErrorÚgetattr) Ú compressionrÚdataÚdestÚargsr8ÚmethodÚcompress_methodÚfileÚbytesÚfs            rÚwrite_to_compressedrOys€ð&"˜G€DØ €DØ €FðeÒÜ!Ÿ/™/ˆØˆØdˆ|ˆØ‰Ø    ˜Ò    Ü!Ÿ/™/ˆØˆÜ‰ DÔ)ˆÜ—
‘
˜4Ó ˆÜ˜“IˆŒ    Øeˆ}ˆØ‰Ø    ˜Ò    ÜŸ-™-‰Ø    ˜Ò    Ü&›.‰Ø    ˜Ò    Ü4°[ÓA×FÑF‰Ø    ˜Ò    Ü'›/‰äÐ:¸;¸-ÐHÓIÐIá    ˜ DÔ    )ð"¨QØŒ6Ó˜DÑ!÷"÷"ñ"ús Ã(DÄD
)N)rrrz"FilePath | ReadPickleBuffer | NoneÚreturnzDataFrame | Series)rz
str | None)Útest)rHÚstrrPÚNone)Ú
__future__rr3r>rr;Útypingrrrrr9Ú pandas.compatrrÚpandas.compat._optionalr    ÚpandasrÚpandas._testing.contextsr
Úpandas._typingr r r rrr"r)rO©órú<module>r]stðÝ"ã Û    ÛÛ÷ñó
 Û÷õ?ãÝ1á÷÷
ð:>ð)Ø     ð)Ø6ð)àó)ô4ô6õ:1"r\