
    bMhQ                     j    d dl Zd dlZd dlmZmZmZ d dlmZ	  G d d          Z
 G d d          ZdS )    N)PeriodPeriodIndexperiod_rangec                       e Zd ZdZej                            dg d          ej                            d          ej                            d          d                                     ZdS )TestPeriodRepresentationz#
    Wish to match NumPy units
    zfreq, base_date))zW-THU
1970-01-01)Dr   )Br   )hr   )minr   )sr   )msr   )usr   )nsr   )Mz1970-01)Yi  z3ignore:PeriodDtype\[B\] is deprecated:FutureWarningz8ignore:Period with BDay freq is deprecated:FutureWarningc                     t          |d|          }t          j        dt          j                  }t	          j        |j        |           d S )N
   )startperiodsfreq)dtype)r   nparangeint64tmassert_numpy_array_equalasi8)selfr   	base_daterngexps        f/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/pandas/tests/indexes/period/test_tools.py	test_freqz"TestPeriodRepresentation.test_freq   sI    * BTBBBi"(+++
#CHc22222    N)	__name__
__module____qualname____doc__pytestmarkparametrizefilterwarningsr$    r%   r#   r   r      s          [	
 	
 	
   [ VWW[B 3 3  XW! (3 3 3r%   r   c                       e Zd Zd ZdS )TestPeriodIndexConversionc                     t          ddd          }|                                }|D ]}t          |t                    sJ t	          |          }t          j        ||           d S )Nr   z1/1/2001z	12/1/2009)r   r   end)r   tolist
isinstancer   r   r   assert_index_equal)r   indexrsxrecons        r#   test_tolistz%TestPeriodIndexConversion.test_tolist-   so    #Z[III\\^^ 	) 	)Aa((((((B
eU+++++r%   N)r&   r'   r(   r:   r.   r%   r#   r0   r0   ,   s#        , , , , ,r%   r0   )numpyr   r*   pandasr   r   r   pandas._testing_testingr   r   r0   r.   r%   r#   <module>r?      s                 
      3 3 3 3 3 3 3 3@, , , , , , , , , ,r%   