gL i$ddlmZddlZddlZddlmZddlmZddl m Z m Z mZmZmZGddZGddeZGd d eZGd d eZd Zy)) annotationsN)api) extensionsindexers interchangetypestypingceZdZddZy)BaseNctdt|D}| tt|t|z }t|}tj||y)Nc3PK|]}|jdr|dk7s| yw)__rN) startswith).0fs _/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/pandas/tests/api/test_api.py zBase.check..s' Q\\$-?ADVA s &&&)sorteddirsettmassert_almost_equal)self namespaceexpectedignoredresults rcheckz Base.checksX  9~    CK#g,67F(# vx0N)__name__ __module__ __qualname__rrrr r s 1rr ceZdZUgdZgdZgdZgdZgdZgZde d<gZ de d<gd Z gd Z gd Z d gZgd ZgZde d<gZde d<gdZej(sej+ddZdZdZy) TestPDApi)testslocaleconftest_version_meson) rarraysoptionstesttestingerrorsplottingiotseries)compatcorepandasutil_built_with_meson) IndexSliceNaTNA)( ArrowDtype CategoricalCategoricalIndex DataFrame DateOffset DatetimeIndex ExcelFile ExcelWriterFlagsGrouperHDFStoreIndex MultiIndexPeriod PeriodIndex RangeIndexSeries SparseDtype StringDtype TimedeltaTimedeltaIndex TimestampInterval IntervalIndexCategoricalDtype PeriodDtype IntervalDtypeDatetimeTZDtype BooleanDtype Int8Dtype Int16Dtype Int32Dtype Int64Dtype UInt8Dtype UInt16Dtype UInt32Dtype UInt64Dtype Float32Dtype Float64DtypeNamedAggz list[str]deprecated_classesmodules)array bdate_rangeconcatcrosstabcut date_rangeinterval_rangeeval factorize get_dummies from_dummies infer_freqisnaisnulllreshapemeltnotnanotnulloffsetsmerge merge_ordered merge_asof period_rangepivot pivot_tableqcut show_versionstimedelta_rangeunique value_counts wide_to_long) reset_optiondescribe_option get_optionoption_context set_optionset_eng_float_format)read_clipboardread_csv read_excelread_fwfread_gbqread_hdf read_htmlread_xml read_json read_pickleread_sasread_sqlread_sql_queryread_sql_table read_stata read_table read_feather read_parquetread_orc read_spssjson_normalize) to_datetime to_numeric to_pickle to_timedeltadeprecated_funcs_in_futuredeprecated_funcs)_config_libs _is_numpy_dev_pandas_datetime_CAPI_pandas_parser_CAPI_testing_typing_versioncd|j|jz|jz|jz|jz|j z|j z|jz|jz|jz|jz}|jt||jy)N)rrr) public_lib private_libmiscrdclassesfuncs funcs_option funcs_read funcs_jsonfuncs_toprivate_modulesrpdr)r checktheses rtest_apizTestPDApi.test_apis OO ii ll ll   jj     oo oo mm "" #  R*dll Krct|j|jz|jz|jz|j z|j z|jz|jz|jzt|jz }ttj}||z }|rJ||z }|rJyr ) rrrrdrrrrrrrcr__all__)rractual extraneousmissings r test_api_allzTestPDApi.test_api_alls OOii ll ll jj     oo  oo mm    '' ( )RZZh& ~V#{7rc|j|jz|jz}|D]4}tjt 5t t|}ddd6y#1swYAxYwr )rcrrrassert_produces_warning FutureWarninggetattrr)rdeprecated_listdepr_s r test_deprzTestPDApi.test_deprsq  # ### $-- .  $ &D++M: &B% & & & & &s A!!A* N)r!r"r#rrrrrrc__annotations__rdrrrrrrrrrr7appendrrrr$rrr&r&!s@G JLK 'D)GX%' &GY EFLJ0##JJH-/ .#%i$O   z*L (&rr&c`eZdZgdZgdZgdZddgZgdZgdZdZ d Z d Z d Z d Z d Zy)TestApi)rrrrr )DataFrameGroupByDatetimeIndexResamplerGroupby ExpandingExpandingGroupbyExponentialMovingWindowExponentialMovingWindowGroupby JsonReaderNaTTypeNATypePeriodIndexResamplerGroupby ResamplerRollingRollingGroupby SeriesGroupBy StataReaderTimedeltaIndexResamplerGroupby TimeGrouperWindow).is_any_real_numeric_dtype is_array_likeis_bool is_bool_dtypeis_categorical_dtype is_complexis_complex_dtypeis_datetime64_any_dtypeis_datetime64_dtypeis_datetime64_ns_dtypeis_datetime64tz_dtype is_dict_likeis_dtype_equalis_extension_array_dtype is_file_likeis_floatis_float_dtype is_hashableis_int64_dtype is_integeris_integer_dtype is_intervalis_interval_dtype is_iterator is_list_likeis_named_tuple is_numberis_numeric_dtypeis_object_dtypeis_period_dtypeis_reis_re_compilable is_scalaris_signed_integer_dtype is_sparseis_string_dtypeis_timedelta64_dtypeis_timedelta64_ns_dtypeis_unsigned_integer_dtype pandas_dtype infer_dtypeunion_categoricalsrSrVrUrTfrom_dataframer>)check_array_indexer BaseIndexerFixedForwardWindowIndexerVariableOffsetWindowIndexer) no_defaultExtensionDtyperegister_extension_dtyperegister_dataframe_accessorregister_index_accessorregister_series_accessortakeExtensionArrayExtensionScalarOpsMixincD|jt|jyr )rrallowed_api_dirsrs rrzTestApi.test_apiUs 3--.rcD|jt|jyr )r api_typingallowed_typingrs rtest_api_typingzTestApi.test_api_typingXs :t223rcD|jt|jyr )r api_typesallowed_api_typesrs rtest_api_typeszTestApi.test_api_types[s 9d445rcD|jt|jyr )rapi_interchangeallowed_api_interchangers rtest_api_interchangezTestApi.test_api_interchange^s ?D$@$@ArcD|jt|jyr )r api_indexersallowed_api_indexersrs rtest_api_indexerszTestApi.test_api_indexersas <!:!:;rcD|jt|jyr )rapi_extensionsallowed_api_extensionsrs rtest_api_extensionszTestApi.test_api_extensionsds >4#>#>?rN)r!r"r#rrr r$r(r,rrr!r%r)r-r$rrrrsWN(/` 0= /46B<@rrc eZdZgdZdZdZy) TestTesting)assert_frame_equalassert_series_equalassert_index_equalassert_extension_array_equalcHddlm}|j||jy)Nr)r.)r5r.rr)rr.s r test_testingzTestTesting.test_testingps" 7DJJ'rctjtd5tjj dddy#1swYyxYw)Nfoomatch)pytestraisesAttributeErrorrr6r7rs rtest_util_in_top_levelz"TestTesting.test_util_in_top_levelus0 ]]> 7  GGKK   s AA N)r!r"r#rr5r=r$rrr/r/hs E( rr/cd}tjt|5tjj }dddtjj usJy#1swY(xYw)Nz0PandasArray has been renamed NumpyExtensionArrayr8)rrrrr+ PandasArrayNumpyExtensionArray)msgress rtest_pandas_array_aliasrCzsU rGsY"  1 1 R&R&jo@do@d$$0r