
    d@                        d dl mZ d dlZd dlZd dlmZ d dlmZ  G d d          Z	 G d de	          Z
 G d d	e	          Z G d
 de	          ZdS )    )annotationsN)apic                      e Zd ZddZdS )BaseNc                    t          d t          |          D                       }|,t          t          |          t          |          z
            }t          |          }t          j        ||           d S )Nc              3  P   K   | ]!}|                     d           s
|dk    |V  "dS )__r   N)
startswith).0fs     U/var/www/html/t/fyr/venv311/lib/python3.11/site-packages/pandas/tests/api/test_api.py	<genexpr>zBase.check.<locals>.<genexpr>   sI       
 
Q\\$-?-?
DEDVDVADVDVDVDV
 
    )sorteddirsettmassert_almost_equal)self	namespaceexpectedignoredresults        r   checkz
Base.check   s    
  
 
9~~
 
 
 
 
 CKK#g,,677F(##
vx00000r   N)__name__
__module____qualname__r    r   r   r   r   
   s(        1 1 1 1 1 1r   r   c                      e Zd ZU g dZg dZg dZg dZg dZg Zde	d<   g Z
de	d<   g d	Zg d
Zg dZdgZg dZg Zde	d<   g Zde	d<   g dZd Zd Zd ZdS )	TestPDApi)testslocaleconftest)	r   arraysoptionstesttestingerrorsplottingiotseries)compatcorepandasutil)
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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value_counts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_gbq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json_normalize)to_datetime
to_numeric	to_pickleto_timedeltadeprecated_funcs_in_futuredeprecated_funcs)_config_libs_is_numpy_dev_testing_typing_versionc                    | j         | j        z   | j        z   | j        z   | j        z   | j        z   | j        z   | j        z   | j        z   | j	        z   | j
        z   }|                     t          || j                   d S )N)r   r   r   )
public_libprivate_libmiscr]   classesfuncsfuncs_option
funcs_read
funcs_jsonfuncs_toprivate_modulesr   pdr   )r   
checktheses     r   test_apizTestPDApi.test_api   s    Oi l l	
 j   o o m	 "
# 	 	

R*dl
KKKKKr   c                .   t          | j        | j        z   | j        z   | j        z   | j        z   | j        z   | j        z   | j        z   | j	        z             t          | j
                  z
  }t          t          j                  }||z
  }|rJ ||z
  }|rJ d S r   )r   r   r   r]   r   r   r   r   r   r   r\   r   __all__)r   r   actual
extraneousmissings        r   test_api_allzTestPDApi.test_api_all   s    Oil l j	
   o o m

 

 '((
) RZh&
V#r   c                    | j         | j        z   | j        z   }|D ]H}t          j        t
                    5  t          t          |          }d d d            n# 1 swxY w Y   Id S r   )r\   r   r   r   assert_produces_warningFutureWarninggetattrr   )r   deprecated_listdepr_s       r   	test_deprzTestPDApi.test_depr   s    ##$-. 	
 $ 	& 	&D+M:: & &B%%& & & & & & & & & & & & & & &	& 	&s   AA	A	N)r   r   r   r   r   r   r   r   r\   __annotations__r]   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r!   r!      s<         .--G
 
 
J 766K '&&D) ) )GX %'&&&& G     EF  L  J0 ##J JIIH -/.... #%$$$$  OL L L   (& & & & &r   r!   c                      e Zd Zg dZd ZdS )TestApi)types
extensionsindexersinterchangec                F    |                      t          | j                   d S r   )r   r   allowedr   s    r   r   zTestApi.test_api   s    

3%%%%%r   N)r   r   r   r   r   r   r   r   r   r      s.        @@@G& & & & &r   r   c                  "    e Zd Zg dZd Zd ZdS )TestTesting)assert_frame_equalassert_series_equalassert_index_equalassert_extension_array_equalc                H    ddl m} |                     || j                   d S )Nr   )r(   )r/   r(   r   r   )r   r(   s     r   test_testingzTestTesting.test_testing   s0    """"""

7DJ'''''r   c                    t          j        t          d          5  t          j        j         d d d            d S # 1 swxY w Y   d S )Nfoo)match)pytestraisesAttributeErrorr   r0   r   r   s    r   test_util_in_top_levelz"TestTesting.test_util_in_top_level   s    ]>777 	 	GKK	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	s   ;??N)r   r   r   r   r   r   r   r   r   r   r      sC          E( ( (
    r   r   )
__future__r   r   r/   r   r   pandas._testingr   r   r   r!   r   r   r   r   r   <module>r      s	   " " " " " "                 1 1 1 1 1 1 1 1 O& O& O& O& O& O& O& O&d& & & & &d & & &    $     r   