gL iddlmZddlZddlZddlZddlZddlZddlZddlm Z e rddl m Z ddl m Z mZmZd dZd dZd dZd d d Zy)) annotationsN) TYPE_CHECKING)JSONSerializable)VERSIONS get_versionimport_optional_dependencycV ddlm}|S#t$rddlm}|}|dcYSwxYw)za Use vendored versioneer code to get git hash, which handles git worktree correctly. r)__git_version__) get_versionszfull-revisionid)pandas._version_mesonr ImportErrorpandas._versionr )r r versionss a/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/util/_print_versions.py_get_commit_hashrs9 +  +0>)** +s  ((ctj}tj\}}t tj t jddz|j|j|j|j|jtjtj j#dtj j#d||dd S)zG Returns system information as a JSON serializable dictionary. PLC_ALLLANG) language-codeencoding) commitpythonz python-bitsOSz OS-releaseVersionmachine processor byteorderrrLOCALE)platformunamelocale getlocalerpython_versionstructcalcsizesystemreleaseversionrrsysrosenvironget) uname_result language_coders r _get_sys_infor1's>>#L$..0M8"$))+s+a/!!"**''''!++]]**..* v&$1xH  cgd}|jtti}|D]"} t|d}|r t |nd||<$|S#t $rd||<Y7wxYw)zK Returns dependency information as a JSON serializable dictionary. )pandasnumpypytzdateutilpipCythonsphinxIPythonignore)errorsNzN/A)extendlistrrr Exception)depsresultmodnamemods r_get_dependency_inforE=sx D KKX*,F@ @,WXFC 36k#.4F7O@ M  $#F7O $s AAAct}t}|r||d}|dur5tjj t j |dyt|tsJt|dd5}t j||ddddyt|d tsJ|d d }|d d }|d ||d <td |D}tdtd|jD]\}} t|d|dd| td|jD]\}} t|d|dd| y#1swYyxYw)a Provide useful information, important for bug reports. It comprises info about hosting operation system, pandas version, and versions of other installed relative packages. Parameters ---------- as_json : str or bool, default False * If False, outputs info in a human readable form to the console. * If str, it will be considered as a path to a file. Info will be written to that file in JSON format. * If True, outputs info in JSON format to the console. Examples -------- >>> pd.show_versions() # doctest: +SKIP Your output may look something like this: INSTALLED VERSIONS ------------------ commit : 37ea63d540fd27274cad6585082c91b1283f963d python : 3.10.6.final.0 python-bits : 64 OS : Linux OS-release : 5.10.102.1-microsoft-standard-WSL2 Version : #1 SMP Wed Mar 2 00:30:59 UTC 2022 machine : x86_64 processor : x86_64 byteorder : little LC_ALL : None LANG : en_GB.UTF-8 LOCALE : en_GB.UTF-8 pandas : 2.0.1 numpy : 1.24.3 ... )r( dependenciesT)indentwzutf-8)rNr rr.c32K|]}t|yw)N)len).0xs r z show_versions..s*SV*sz INSTALLED VERSIONSz------------------<z: )r1rEr+stdout writelinesjsondumps isinstancestropendumpdictmaxprintitems) as_jsonsys_inforAjfr0rmaxlenkvs r show_versionsrf^smJH  !D 6 d? JJ ! !$**Qq"9 :gs+ ++gsW5 * !Qq) * *(8,d333 *?; H%j1 -az:*T** $% "#NN$ )DAq QqjMA3' ( ) b JJL )DAq QqjMA3' ( ) * *s 5EE)returnz str | None)rgzdict[str, JSONSerializable])F)r_z str | boolrgNone) __future__rrUr#r,r!r&r+typingrpandas._typingrpandas.compat._optionalrrrrr1rErfr2rrnsB"  /+$,B?)r2