o
    $j
                     @   s4  d dl Zd dlZd dlmZmZmZ d dlmZ	 ej
dg dg dfddejdd	ejej d
ddej gg dfdd	ejdd	ejejd
ej dejgg dfgdd Zej
dg dg dfejdej ejd	dej d
dej ej gg dfdd	ejdd	ejejd
ej dejgg dfgdd ZdS )    N)	DataFrameIndexSerieszin_vals, out_vals)            r   r      r   ir   r   )TFFTr   g @r   r   r      )TFTF)FFFFc                 C   s|   g dg d| d}t |}|djj}ttddd}t||dd}t|| |dgj	d	d
 }t|| d S )N12345678910Z11ar   r   br   r   cr   r   dr   ABCr   abcdnamer   indexdatar!   c                 S   s   | j S )N)is_monotonic_increasing)x r'   o/var/www/html/Deteccion_Ine/venv/lib/python3.10/site-packages/pandas/tests/groupby/methods/test_is_monotonic.py<lambda>,   s    z.test_is_monotonic_increasing.<locals>.<lambda>)
r   groupbyr   r%   r   listr   tmassert_series_equalapplyZin_valsZout_valsZsource_dictZdfresultr#   expectedr'   r'   r(   test_is_monotonic_increasing   s   r2   )
   	      r   r	   r   r   r   r   r   r6   )TTFTc                 C   sX   g dg d| d}t |}|djj}ttddd}t||dd}t|| d S )	Nr   r   r   r   r   r    r   r"   )	r   r*   r   Zis_monotonic_decreasingr   r+   r   r,   r-   r/   r'   r'   r(   test_is_monotonic_decreasing0   s   r7   )numpynpZpytestZpandasr   r   r   Zpandas._testingZ_testingr,   markZparametrizeinfnanr2   r7   r'   r'   r'   r(   <module>   s8    $$
,$