
    d                     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          d             ZdS )TestPeriodRepresentationz#
    Wish to match NumPy units
    zfreq, base_date))zW-THU
1970-01-01)Dr   )Br   )Hr   )Tr   )Sr   )Lr   )Ur   )Nr   )Mz1970-01)Ai  c                     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        b/var/www/html/t/fyr/venv311/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parametrizer$    r%   r#   r   r      s`          [	
 	
 	
  3 3!  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(   r9   r-   r%   r#   r/   r/   (   s#        , , , , ,r%   r/   )numpyr   r*   pandasr   r   r   pandas._testing_testingr   r   r/   r-   r%   r#   <module>r>      s                 
      3 3 3 3 3 3 3 38, , , , , , , , , ,r%   