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
U
¬ý°dBã@svddlmZddlZddlZddlmZddlmZGdd„dƒZ    Gdd„de    ƒZ
Gdd    „d    e    ƒZ Gd
d „d e    ƒZ dS) é)Ú annotationsN)Úapic@seZdZddd„ZdS)ÚBaseNcCsJtdd„t|ƒDƒƒ}|dk    r2tt|ƒt|ƒƒ}t|ƒ}t ||¡dS)Ncss$|]}| d¡s|dkr|VqdS)Ú__rN)Ú
startswith)Ú.0Úf©r    úPd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\pandas/tests/api/test_api.pyÚ    <genexpr>s
zBase.check.<locals>.<genexpr>)ÚsortedÚdirÚsetÚtmZassert_almost_equal)ÚselfÚ    namespaceÚexpectedÚignoredÚresultr    r    r
Úcheck sÿz
Base.check)N)Ú__name__Ú
__module__Ú __qualname__rr    r    r    r
r
src(@s€eZdZUdddgZdddddd    d
d d g    Zd dddgZdddgZddddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/d0d1d2d3d4d5d6d7d8d9d:d;g(ZgZd<e    d=<gZ
d<e    d><d?d@dAdBdCdDdEdFdGdHdIdJdKdLdMdNdOdPdQdRdSdTdUdVdWdXdYdZd[d\d]gZ d^d_d`dadbdcgZ dddedfdgdhdidjdkdldmdndodpdqdrdsdtdudvdwgZ dxgZdydzd{d|gZgZd<e    d}<gZd<e    d~<dd€dd‚dƒd„gZd…d†„Zd‡dˆ„Zd‰dŠ„Zd‹S)ŒÚ    TestPDApiÚtestsÚlocaleZconftestrZarraysÚoptionsÚtestÚtestingÚerrorsZplottingÚioZtseriesÚcompatÚcoreÚpandasÚutilZ
IndexSliceZNaTZNAZ
ArrowDtypeZ CategoricalZCategoricalIndexZ    DataFrameZ
DateOffsetZ DatetimeIndexZ    ExcelFileZ ExcelWriterZFlagsZGrouperZHDFStoreZIndexZ
MultiIndexZPeriodZ PeriodIndexZ
RangeIndexZSeriesZ SparseDtypeZ StringDtypeZ    TimedeltaZTimedeltaIndexÚ    TimestampZIntervalZ IntervalIndexZCategoricalDtypeZ PeriodDtypeZ IntervalDtypeZDatetimeTZDtypeZ BooleanDtypeZ    Int8DtypeZ
Int16DtypeZ
Int32DtypeZ
Int64DtypeZ
UInt8DtypeZ UInt16DtypeZ UInt32DtypeZ UInt64DtypeZ Float32DtypeZ Float64DtypeZNamedAggz    list[str]Údeprecated_classesÚmodulesÚarrayZ bdate_rangeÚconcatZcrosstabZcutZ
date_rangeZinterval_rangeÚevalZ    factorizeZ get_dummiesZ from_dummiesZ
infer_freqZisnaZisnullZlreshapeZmeltZnotnaZnotnullÚoffsetsÚmergeZ merge_orderedZ
merge_asofZ period_rangeZpivotZ pivot_tableZqcutZ show_versionsZtimedelta_rangeÚuniqueZ value_countsZ wide_to_longZ reset_optionZdescribe_optionÚ
get_optionZoption_contextZ
set_optionZset_eng_float_formatZread_clipboardZread_csvZ
read_excelZread_fwfZread_gbqZread_hdfZ    read_htmlZread_xmlÚ    read_jsonZ read_pickleZread_sasZread_sqlZread_sql_queryZread_sql_tableZ
read_stataZ
read_tableZ read_featherZ read_parquetZread_orcZ    read_spssZjson_normalizeÚ to_datetimeZ
to_numericZ    to_pickleZ to_timedeltaÚdeprecated_funcs_in_futureÚdeprecated_funcsÚ_configZ_libsZ _is_numpy_devÚ_testingÚ_typingÚ_versioncCsX|j|j|j|j|j|j|j|j|j|j    |j
}|j t ||j ddS)N)rrr)Ú
public_libÚ private_libÚmiscr'ÚclassesÚfuncsÚ funcs_optionÚ
funcs_readÚ
funcs_jsonÚfuncs_toÚprivate_modulesrÚpdr)rZ
checktheser    r    r
Útest_api½s.ÿþýüûúùø    ÷
öÿ zTestPDApi.test_apicCsrt|j|j|j|j|j|j|j|j|j    ƒt|j
ƒ}tt j ƒ}||}|r^t ‚||}|rnt ‚dS©N)rr7r9r'r:r;r<r=r>r?r&rAÚ__all__ÚAssertionError)rrÚactualZ
extraneousÚmissingr    r    r
Ú test_api_allÍs4ÿþýüûúùøÿ
ö
zTestPDApi.test_api_allc
Cs@|j|j|j}|D]$}t t¡tt|ƒ}W5QRXqdSrC)r&r2r1rZassert_produces_warningÚ FutureWarningÚgetattrrA)rZdeprecated_listZdeprÚ_r    r    r
Ú    test_deprásÿþÿ zTestPDApi.test_deprN)rrrrr7r8r9r:r&Ú__annotations__r'r;r<r=r>r?r1r2r@rBrHrLr    r    r    r
rs
 
÷ 
Ø,  á$ú ì   ú    rc@s eZdZddddgZdd„ZdS)ÚTestApiÚtypesÚ
extensionsZindexersZ interchangecCs| t|j¡dSrC)rrÚallowed©rr    r    r
rBïszTestApi.test_apiN)rrrrQrBr    r    r    r
rNìs rNc@s(eZdZddddgZdd„Zdd„Zd    S)
Ú TestTestingZassert_frame_equalZassert_series_equalZassert_index_equalZassert_extension_array_equalcCsddlm}| ||j¡dS)Nr)r)r#rrr;)rrr    r    r
Ú test_testingûs zTestTesting.test_testingc    Cs&tjtddtjjW5QRXdS)NÚfoo)Úmatch)ÚpytestZraisesÚAttributeErrorrAr$rUrRr    r    r
Útest_util_in_top_levelsz"TestTesting.test_util_in_top_levelN)rrrr;rTrYr    r    r    r
rSósürS) Ú
__future__rrWr#rArZpandas._testingr4rrrrNrSr    r    r    r
Ú<module>s   S