
    OwgQ                    V    d dl mZ d dlmZ d dlmZmZ erd dlmZ d	dZ	d	dZ
d
ddZy)    )annotations)TYPE_CHECKING)	DataFrameconcat)AxisIntNc                
   ddddd}t        |t              r$|j                         D ci c]  \  }}||
 }}}n!t        |t              r|j	                  |       |j                  d      r| j                  d   |d   k(  sJ |j                  d      r| j                  d   |d   k(  sJ |j                  d      r| j                  d   |d   k(  sJ |j                  d      r| j                  d   |d   k(  sJ y y c c}}w )	Nfloat32float16float64ABCDr   r   r   r   
isinstancestritemsdictupdategetdtypesdfdtyper   kvs        P/var/www/horilla/myenv/lib/python3.12/site-packages/pandas/tests/frame/common.py_check_mixed_floatr      s    999MF%'-||~6tq!!U(66	E4	 ezz#yy~,,,zz#yy~,,,zz#yy~,,,zz#yy~,,,  7   C?c                
   ddddd}t        |t              r$|j                         D ci c]  \  }}||
 }}}n!t        |t              r|j	                  |       |j                  d      r| j                  d   |d   k(  sJ |j                  d      r| j                  d   |d   k(  sJ |j                  d      r| j                  d   |d   k(  sJ |j                  d	      r| j                  d	   |d	   k(  sJ y y c c}}w )
Nint32uint64uint8int64r   r   r   r   r   r   r   s        r   _check_mixed_intr&      s    gFF%'-||~6tq!!U(66	E4	 ezz#yy~,,,zz#yy~,,,zz#yy~,,,zz#yy~,,,  7r    c           	     4   |dk(  rE| d   j                   }|D cg c]  }| D ]  }|j                  dd|f     }}}t        |d      S | d   j                  }|D cg c]  }| D ]  }|j                  |ddf     }}}t	        |      S c c}}w c c}}w )z
    take a list of frames, zip them together under the
    assumption that these all have the first frames' index/columns.

    Returns
    -------
    new_frame : DataFrame
       r   N)axis)columnslocr   indexr   )framesr)   r*   cfzippedr,   is           r   
zip_framesr2   /   s     qy)##'.?!?1!%%1+?+??f1%%q	',=!f=!%%1+=+==   @ >s   !B!B)N)r(   )r-   zlist[DataFrame]r)   r   returnr   )
__future__r   typingr   pandasr   r   pandas._typingr   r   r&   r2        r   <module>r:      s'    "  
 &-"- !r9   