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
86
87
88
89
90
91
U
¬ý°d-ã @s dZddlmZddlZddlZddlZddlmZddlm    Z    m
Z
m Z m Z m Z ddlZddlmZmZddlmZmZmZmZdd    dd
œd d „Zd dœdd„Zd dœdd„Zd dœdd„Zd dœdd„Zd dœdd„Zd dœdd„Zd dœdd„Zddœdd„Z d d!d"d#d$d%d&d'd(d)d*g Z!dS)+zn
compat
======
 
Cross-compatible functions for different versions of Python.
 
Other items:
* platform checker
é)Ú annotationsN)ÚF)ÚIS64ÚPY39ÚPY310ÚPY311ÚPYPY)Ú is_numpy_devÚnp_version_under1p21)Úpa_version_under7p0Úpa_version_under8p0Úpa_version_under9p0Úpa_version_under11p0rÚstr)ÚfÚnameÚreturncCs$||_|j›d|›|_|j|_|S)z<
    Bind the name/qualname attributes of the function.
    Ú.)Ú__name__Ú __qualname__Ú
__module__)rrÚcls©rúMd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/compat/__init__.pyÚset_function_name%srÚbool)rcCs
tjdkS)z•
    Checking if the running platform is little endian.
 
    Returns
    -------
    bool
        True if the running platform is little endian.
    Úlittle)ÚsysÚ    byteorderrrrrÚis_platform_little_endian/s    rcCs
tjdkS)z‰
    Checking if the running platform is windows.
 
    Returns
    -------
    bool
        True if the running platform is windows.
    )Úwin32Úcygwin©rÚplatformrrrrÚis_platform_windows;s    r$cCs
tjdkS)z…
    Checking if the running platform is linux.
 
    Returns
    -------
    bool
        True if the running platform is linux.
    Úlinuxr"rrrrÚis_platform_linuxGs    r&cCs
tjdkS)z
    Checking if the running platform is mac.
 
    Returns
    -------
    bool
        True if the running platform is mac.
    Údarwinr"rrrrÚis_platform_macSs    r(cCst ¡dkpt ¡ d¡S)zž
    Checking if the running platform use ARM architecture.
 
    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )Zarm64Úaarch64Zarmv)r#ÚmachineÚ
startswithrrrrÚis_platform_arm_s    ÿr,cCs t ¡dkS)z 
    Checking if the running platform use Power architecture.
 
    Returns
    -------
    bool
        True if the running platform uses ARM architecture.
    )Úppc64Úppc64le)r#r*rrrrÚis_platform_powerms    r/cCstj dd¡dkS)zà
    Checking if running in a continuous integration environment by checking
    the PANDAS_CI environment variable.
 
    Returns
    -------
    bool
        True if the running in a continuous integration environment.
    Z    PANDAS_CIÚ0Ú1)ÚosÚenvironÚgetrrrrÚis_ci_environmentys
r5z(type[pandas.compat.compressors.LZMAFile]cCstjjjstdƒ‚tjjjS)a
 
    Importing the `LZMAFile` class from the `lzma` module.
 
    Returns
    -------
    class
        The `LZMAFile` class from the `lzma` module.
 
    Raises
    ------
    RuntimeError
        If the `lzma` module was not imported correctly, or didn't exist.
    zslzma module not available. A Python re-install with the proper dependencies, might be required to solve this issue.)ÚpandasÚcompatZ compressorsZhas_lzmaÚ RuntimeErrorÚLZMAFilerrrrÚ get_lzma_file†s
 
ÿr:r    r
r r r rrrrrr)"Ú__doc__Ú
__future__rr2r#rZpandas._typingrZpandas.compat._constantsrrrrrZpandas.compat.compressorsr6Zpandas.compat.numpyr    r
Zpandas.compat.pyarrowr r r rrrr$r&r(r,r/r5r:Ú__all__rrrrÚ<module>s<      
      õ