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
U
¬ý°dŒã%@sÖddlmZddlZddlZddlZddlZddlmZddlm    Z    ddddd    d
d d d
d ddddddddddddddddddddd d!d"d#d$d%d&œ$Z
d'd(d)d*d+d,d-d.d/d0d1œ
Z d2d3d4œd5d6„Z d=d3d3d3d9d:œd;d<„Z dS)>é)Ú annotationsN)Úfind_stack_level)ÚVersionz4.9.3z1.21.0z1.3.2z0.7.0z0.6.3z    2021.07.0z1.1z6.34.2z3.0.0z4.6.3z3.6.1z0.53.1z2.7.3z1.4.1z3.0.7z0.15.0z2.8.6z1.0.2z7.0.0z1.1.2z1.0.8z    2021.08.0z1.7.1z0.6.0z1.4.16z0.8.9z0.21.0z2.0.1z1.4.3z0.15.2z2022.1z2.2.0z5.15.1)$Úbs4ZbloscÚ
bottleneckÚbrotliZ fastparquetZfsspecÚhtml5libZ
hypothesisZgcsfsÚjinja2ú
lxml.etreeZ
matplotlibZnumbaZnumexprÚodfpyZopenpyxlÚ
pandas_gbqÚpsycopg2ZpymysqlZpyarrowZ
pyreadstatZpytestZpyxlsbZs3fsZscipyÚsnappyÚ
sqlalchemyÚtablesÚtabulateZxarrayZxlrdZ
xlsxwriterZ    zstandardZtzdataZqtpyZpyqt5Zbeautifulsoup4Z
BottleneckZbrotlipyZJinja2Úlxmlr z
pandas-gbqz python-snappyZ
SQLAlchemyZpytables)
rrrr    r
Zodfr rrrztypes.ModuleTypeÚstr)ÚmoduleÚreturncCsnt|ddƒ}|dkr t|ddƒ}|dkrT|jdkr6dS|jdkrDdStd|j›ƒ‚|jdkrj| ¡d}|S)    NÚ __version__Z __VERSION__rÚrzCan't determine version for r r)ÚgetattrÚ__name__Ú ImportErrorÚsplit)rÚversion©rúNd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/compat/_optional.pyÚ get_versionFs  
 
 
 rrÚraisez
str | None)ÚnameÚextraÚerrorsÚ min_versionc Cs(|dks t‚t |¡}|dk    r"|n|}d|›d|›d|›d}zt |¡}Wn&tk
rr|dkrlt|ƒ‚YdSX| d¡d}||krš|}tj|}    n|}    |dk    rª|nt     |¡}
|
r$t
|    ƒ} | r$t | ƒt |
ƒkr$d    |
›d
|›d | ›d }|d krt j |ttƒddS|dkr$t|ƒ‚|S)a9
    Import an optional dependency.
 
    By default, if a dependency is missing an ImportError with a nice
    message will be raised. If a dependency is present, but too old,
    we raise.
 
    Parameters
    ----------
    name : str
        The module name.
    extra : str
        Additional text to include in the ImportError message.
    errors : str {'raise', 'warn', 'ignore'}
        What to do when a dependency is not found or its version is too old.
 
        * raise : Raise an ImportError
        * warn : Only applicable when a module's version is to old.
          Warns that the version is too old and returns None
        * ignore: If the module is not installed, return None, otherwise,
          return the module, even if the version is too old.
          It's expected that users validate the version locally when
          using ``errors="ignore"`` (see. ``io/html.py``)
    min_version : str, default None
        Specify a minimum version that is different from the global pandas
        minimum version required.
    Returns
    -------
    maybe_module : Optional[ModuleType]
        The imported module, when found and the version is correct.
        None is returned when the package is not found and `errors`
        is False, or when the package's version is too old and `errors`
        is ``'warn'``.
    >Úwarnr ÚignoreNzMissing optional dependency 'z'. z Use pip or conda to install Ú.r rzPandas requires version 'z' or newer of 'z ' (version 'z' currently installed).r%)Ú
stacklevel)ÚAssertionErrorÚINSTALL_MAPPINGÚgetÚ    importlibÚ import_modulerrÚsysÚmodulesÚVERSIONSrrÚwarningsr%Ú UserWarningr) r!r"r#r$Ú package_nameZ install_nameÚmsgrÚparentZ module_to_getÚminimum_versionrrrrÚimport_optional_dependency[s@) 
ÿ ÿ
ý
r7)rr N)Ú
__future__rr,r.Útypesr1Zpandas.util._exceptionsrZpandas.util.versionrr0r*rr7rrrrÚ<module>sv   Ü+öü