
    4i9                       S SK Jr  S SKrS SKrS SKrS SKrS SKrS SKrS SKJ	r	  S SK
Jr  S SKJrJrJrJrJrJr  S SKJr   " S S5      r " S S	\5      r " S
 S\5      r " S S\5      r  " S S\5      r! " S S\5      r"      SS jr#\RH                  RJ                  \RH                  RM                  SSSSS\RN                  " S\RH                  RQ                  SS9S9SS/5      S 5       5       r)g)     )annotationsN)api)	executors
extensionsindexersinterchangetypestyping)aliasesc                      \ rS rSrSS jrSrg)Base   Nc                    [        S [        U5       5       5      nUb   [        [        U5      [        U5      -
  5      n[        U5      n[        R                  " XB5        g )Nc              3  d   #    U  H&  oR                  S 5      (       a  M  US:w  d  M"  Uv   M(     g7f)__r   N)
startswith).0fs     [/var/www/html/dynamic-report/venv/lib/python3.13/site-packages/pandas/tests/api/test_api.py	<genexpr>Base.check.<locals>.<genexpr>   s'      
%!\\$-?AADVAA~s   00	0)sorteddirsettmassert_almost_equal)self	namespaceexpectedignoredresults        r   check
Base.check   sV    
  
9~
 
 CK#g,67F(#
v0     N)__name__
__module____qualname____firstlineno__r"   __static_attributes__r%   r$   r   r   r      s    1r$   r   c                      \ rS rSr% / SQr/ SQr/ SQr/ SQr/ SQr/ r	S\
S'   / rS\
S	'   / S
Qr/ SQr/ SQrS/r/ SQr/ rS\
S'   / rS\
S'   / SQr\R*                  (       d  \R-                  S5        S rS rS rSrg)	TestPDApi(   )testslocaleconftest_version_meson)	r   arraysoptionstesttestingerrorsplottingiotseries)compatcorepandasutil_built_with_meson)
IndexSliceNaTNA)(
ArrowDtypeCategoricalCategoricalIndex	DataFrame
DateOffsetDatetimeIndex	ExcelFileExcelWriterFlagsGrouperHDFStoreIndex
MultiIndexPeriodPeriodIndex
RangeIndexSeriesSparseDtypeStringDtype	TimedeltaTimedeltaIndex	TimestampIntervalIntervalIndexCategoricalDtypePeriodDtypeIntervalDtypeDatetimeTZDtypeBooleanDtype	Int8Dtype
Int16Dtype
Int32Dtype
Int64Dtype
UInt8DtypeUInt16DtypeUInt32DtypeUInt64DtypeFloat32DtypeFloat64DtypeNamedAggz	list[str]deprecated_classesmodules)arraybdate_rangecolconcatcrosstabcut
date_rangeinterval_rangeeval	factorizeget_dummiesfrom_dummies
infer_freqisnaisnulllreshapemeltnotnanotnulloffsetsmergemerge_ordered
merge_asofperiod_rangepivotpivot_tableqcutshow_versionstimedelta_rangeuniquewide_to_long)reset_optiondescribe_option
get_optionoption_context
set_optionset_eng_float_format)read_clipboardread_csv
read_excelread_fwfread_hdf	read_htmlread_xml	read_jsonread_pickleread_sasread_sqlread_sql_queryread_sql_table
read_stata
read_tableread_featherread_parquetread_orc	read_spssread_icebergjson_normalize)to_datetime
to_numeric	to_pickleto_timedeltadeprecated_funcs_in_futuredeprecated_funcs)_config_libs_is_numpy_dev_pandas_datetime_CAPI_pandas_parser_CAPI_testing_typing_versionc                \   U R                   U R                  -   U R                  -   U R                  -   U R                  -   U R
                  -   U R                  -   U R                  -   U R                  -   U R                  -   U R                  -   nU R                  [        XR                  S9  g )N)r   r   r    )
public_libprivate_libmiscrl   classesfuncsfuncs_option
funcs_read
funcs_jsonfuncs_toprivate_modulesr"   pdr    )r   
checktheses     r   test_apiTestPDApi.test_api   s    OOii ll ll	
 jj   oo oo mm	 ""
# 	 	

R*ll
Kr$   c                   [        U R                  U R                  -   U R                  -   U R                  -   U R
                  -   U R                  -   U R                  -   U R                  -   U R                  -   5      [        U R                  5      -
  n[        [        R                  5      nX!-
  nU(       a   eX-
  nU(       a   eg r&   )r   r   r   rl   r   r   r   r   r   r   rk   r   __all__)r   r   actual
extraneousmissings        r   test_api_allTestPDApi.test_api_all   s    OOiill ll jj	
   oo oo mm

 ''(
) RZZ&
~#{7r$   c                    U R                   U R                  -   U R                  -   nU H6  n[        R                  " [
        5         [        [        U5      nS S S 5        M8     g ! , (       d  f       MJ  = fr&   )rk   r   r   r   assert_produces_warningFutureWarninggetattrr   )r   deprecated_listdepr_s       r   	test_deprTestPDApi.test_depr   sa    ####$--. 	
 $D++M:B% ;: $::s   A$$
A3	r%   N)r'   r(   r)   r*   r    r   r   r   r   rk   __annotations__rl   r   r   r   r   r   r   r   r   r   r?   appendr   r   r   r+   r%   r$   r   r-   r-   (   s     @G
J LK 'D)GX %'	& GY EFLJ0 ##J JH -/	. #%i$O z*L (&r$   r-   c                      \ rS rSr/ SQr/ SQr/ SQrSS/r/ SQr/ SQr	S	/r
/ S
QrS rS rS rS rS rS rS rS rSrg)TestApi   )r   r	   r   r   r   r
   	internals)DataFrameGroupByDatetimeIndexResamplerGroupby	ExpandingExpandingGroupbyExponentialMovingWindowExponentialMovingWindowGroupby
Expression
FrozenList
JsonReaderNaTTypeNAType	NoDefaultPeriodIndexResamplerGroupby	ResamplerRollingRollingGroupbySeriesGroupByStataReader	SASReaderTimedeltaIndexResamplerGroupbyTimeGrouperWindowr   )-is_any_real_numeric_dtypeis_array_likeis_boolis_bool_dtypeis_categorical_dtype
is_complexis_complex_dtypeis_datetime64_any_dtypeis_datetime64_dtypeis_datetime64_ns_dtypeis_datetime64tz_dtypeis_dict_likeis_dtype_equalis_extension_array_dtypeis_file_likeis_floatis_float_dtypeis_hashableis_int64_dtype
is_integeris_integer_dtypeis_interval_dtypeis_iteratoris_list_likeis_named_tuple	is_numberis_numeric_dtypeis_object_dtypeis_period_dtypeis_reis_re_compilable	is_scalaris_signed_integer_dtype	is_sparseis_string_dtypeis_timedelta64_dtypeis_timedelta64_ns_dtypeis_unsigned_integer_dtypepandas_dtypeinfer_dtypeunion_categoricalsr[   r^   r]   r\   from_dataframerF   )check_array_indexerBaseIndexerFixedForwardWindowIndexerVariableOffsetWindowIndexer)	
no_defaultExtensionDtyperegister_extension_dtyperegister_dataframe_accessorregister_index_accessorregister_series_accessortakeExtensionArrayExtensionScalarOpsMixinBaseExecutionEngine)FAggFuncType	AlignJoinAnyAllAnyArrayLike	ArrayLike	AstypeArgAxesAxis	CSVEngineColspaceArgTypeCompressionOptionsCorrelationMethodDropKeepDtypeDtypeArgDtypeBackendDtypeObjExcelWriterIfSheetExistsExcelWriterMergeCellsFilePathFillnaOptionsFloatFormatTypeFormattersTypeFromDictOrientHTMLFlavorsIgnoreRaise
IndexLabelInterpolateOptionsIntervalClosedTypeIntervalLeftRight
JSONEngineJSONSerializableJoinHowJoinValidateListLikeMergeHowMergeValidate
NaPositionNsmallestNlargestKeepOpenFileErrorsOrderedParquetCompressionOptionsQuantileInterpolation
ReadBufferReadCsvBufferReadPickleBufferReindexMethodScalarScalarIndexerSequenceIndexerSequenceNotStr	SliceTypeSortKindStorageOptionsSuffixesTakeIndexerTimeAmbiguousTimeGrouperOriginTimeNonexistentTimeUnitTimedeltaConvertibleTypesTimestampConvertibleTypesToStataByteorderToTimestampHow
UpdateJoinUsecolsArgTypeWindowingRankTypeWriteBufferWriteExcelBuffer
XMLParsersc                D    U R                  [        U R                  5        g r&   )r"   r   allowed_api_dirsr   s    r   r   TestApi.test_api  s    

3--.r$   c                D    U R                  [        U R                  5        g r&   )r"   
api_typingallowed_typingrp  s    r   test_api_typingTestApi.test_api_typing  s    

:t223r$   c                D    U R                  [        U R                  5        g r&   )r"   	api_typesallowed_api_typesrp  s    r   test_api_typesTestApi.test_api_types  s    

9d445r$   c                D    U R                  [        U R                  5        g r&   )r"   api_interchangeallowed_api_interchangerp  s    r   test_api_interchangeTestApi.test_api_interchange  s    

?D$@$@Ar$   c                D    U R                  [        U R                  5        g r&   )r"   api_indexersallowed_api_indexersrp  s    r   test_api_indexersTestApi.test_api_indexers  s    

<!:!:;r$   c                D    U R                  [        U R                  5        g r&   )r"   api_extensionsallowed_api_extensionsrp  s    r   test_api_extensionsTestApi.test_api_extensions  s    

>4#>#>?r$   c                D    U R                  [        U R                  5        g r&   )r"   api_executorsallowed_api_executorsrp  s    r   test_api_executorsTestApi.test_api_executors  s    

=$"<"<=r$   c                D    U R                  [        U R                  5        g r&   )r"   api_aliasesallowed_api_aliasesrp  s    r   test_api_typing_aliasesTestApi.test_api_typing_aliases  s    

; 8 89r$   r%   N)r'   r(   r)   r*   ro  rt  ry  r~  r  r  r  r  r   ru  rz  r  r  r  r  r  r+   r%   r$   r   r   r      sv    N2.^  0=
 33GR/46B<@>:r$   r   c                      \ rS rSrS rSrg)
TestErrorsi  c                z    / SQnU R                  [        R                  [        R                  R                  US9  g )N)_CurrentDeprecationWarningabcctypescowr    )r"   r   r7   r   )r   r    s     r   test_errorsTestErrors.test_errors  s'    H

299bii//
Ar$   r%   N)r'   r(   r)   r*   r  r+   r%   r$   r   r  r    s    Br$   r  c                      \ rS rSrS rSrg)TestUtili  c                J    U R                  [        R                  SS// SQS9  g )N
hash_arrayhash_pandas_object)_decorators_test_decorators_exceptions_validatorscapitalize_first_letterversion_print_versions_testerr  )r"   r   r>   rp  s    r   	test_utilTestUtil.test_util  s(    

GG/0	 	 	
r$   r%   N)r'   r(   r)   r*   r  r+   r%   r$   r   r  r    s    
r$   r  c                  (    \ rS rSr/ SQrS rS rSrg)TestTestingi  )assert_frame_equalassert_series_equalassert_index_equalassert_extension_array_equalc                F    SSK Jn  U R                  XR                  5        g )Nr   )r6   )r=   r6   r"   r   )r   r6   s     r   test_testingTestTesting.test_testing  s    "

7JJ'r$   c                    [         R                  " [        SS9   [        R                  R
                    S S S 5        g ! , (       d  f       g = f)Nfoo)match)pytestraisesAttributeErrorr   r>   r  rp  s    r   test_util_in_top_level"TestTesting.test_util_in_top_level  s'    ]]>7GGKK 877s	   >
Ar%   N)r'   r(   r)   r*   r   r  r  r+   r%   r$   r   r  r    s    E(
r$   r  module_namec                   [         R                  " U 5      n/ n[        R                  " U5       HT  u  pE[	        USS5      n[        U[        5      (       d  M)  UR                  S5      (       d  MA  UR                  XU45        MV     U(       d  U$ [        UR                  [        5      (       d   e[        R                  " UR                  5      R                  /n[        R                  " U5       H_  nUR                  nUR                  S5      (       d  US:X  a  M-  UR!                  [#        UR$                   SU 3UR&                  S95        Ma     U$ )ao  
Get all pandas objects within a module.

An object is determined to be part of pandas if it has a string
__module__ attribute that starts with ``"pandas"``.

Parameters
----------
module_name : str
    Name of the module to search.
recurse : bool
    Whether to search submodules.

Returns
-------
    List of all objects that are determined to be a part of pandas.
r(   Nr=   r   r   .recurse)	importlibimport_moduleinspect
getmembersr   
isinstancestrr   r   __file__pathlibPathparentpkgutilwalk_packagesnameextendget_pandas_objectsr'   ispkg)	r  r  moduleobjsr  objmodule_dunderpathsmodule_infos	            r   r  r    s   ( $$[1FD''/	\48mS))m.F.Fx.P.PKKC01 0
  foos++++\\&//*112E,,U3??34;#6&//!2!D6:KDUDUV	
	 4 Kr$   r=   z
pandas.apizpandas.arrayszpandas.errorsz	pandas.iozPrivate imports)reason)markszpandas.plottingpandas.testingc           
        U S;  n[        XS9nU V VVs/ s H`  u  pnUR                  U :X  a  M  SU;   a  UR                  S:X  a  M0  US:X  a  UR                  S:X  a  MH  X[        U5      UR                  4PMb     nnn n[        U5      S:X  d   SR	                  S U 5       5      5       e/ nU H2  u  pn[
        R                  " UR                  5      n [        Xc5        M4     [        U5      S:X  d   SR	                  S	 U 5       5      5       eg
s  snnn f ! [         a+    UR                  X[        U5      UR                  45         M  f = f)zV
Ensures that all public objects have their __module__ set to the public import path.
)r=   r  r  r5  r=   rD   r   
c              3  8   #    U  H  n[        U5      v   M     g 7fr&   r  r   es     r   r   )test_attributes_module.<locals>.<genexpr>7       (BAQ   c              3  8   #    U  H  n[        U5      v   M     g 7fr&   r  r  s     r   r   r  A  r  r  N)
r  r(   typelenjoinr  r  r   	Exceptionr   )r  r  r  r  r  failuresr  s          r   test_attributes_moduler    sK   " !==Gk;D '+	&*"KsNNk) 	7
 4CNNh$> 	7 %#..H*D 	7DIs~~6&*  	 x=ABtyy(B(BBB H"&3((8	LF! #' x=ABtyy(B(BBB)	$  	LOO[S	3>>JK	Ls(   DDD DD1EE)r  r  r  boolreturnzlist[tuple[str, str, object]])*
__future__r   r  r  r  r  r  r=   r   r   pandas._testingr   r   
pandas.apir   r  r   r  r   r  r   r}  r	   rx  r
   rs  pandas.api.typingr   r  r   r-   r   r  r  r  r  markslowparametrizeparamxfailr  r%   r$   r   <module>r     s   "          51 1 R& R&jD:d D:NB B
t 
$$ $))#)")X [(9(9AR(9(STC Cr$   