Ë
    Ìi
  ã                   ó$   — d dl mZ d dlmZ dd„Zy)é    )ÚRow)ÚTableNc           
      ó¬  — t        |«      t        ur|�t        d«      ‚t        |«      t        u r"t        |«      t        | «      k7  rt        d«      ‚t        | j                  «      }t        | j
                  «      }|j                  d|r|n| j                  «       |j                  d|r|n| j                  «       g }t        | j                  «       «      D ]o  \  }\  }}	|	j                  D ]X  }
|€)|j                  t        |ft        |
«      z   |«      «       Œ.|j                  t        ||   ft        |
«      z   |«      «       ŒZ Œq t        |||«      S )a?  
    Convert this TableSet into a single table. This is the inverse of
    :meth:`.Table.group_by`.

    Any `row_names` set on the merged tables will be lost in this
    process.

    :param groups:
        A list of grouping factors to add to merged rows in a new column.
        If specified, it should have exactly one element per :class:`Table`
        in the :class:`TableSet`. If not specified or None, the grouping
        factor will be the name of the :class:`Row`'s original Table.
    :param group_name:
        This will be the column name of the grouping factors. If None,
        defaults to the :attr:`TableSet.key_name`.
    :param group_type:
        This will be the column type of the grouping factors. If None,
        defaults to the :attr:`TableSet.key_type`.
    :returns:
        A new :class:`Table`.
    zGroups must be None or a list.z/Groups length must be equal to TableSet length.r   )ÚtypeÚlistÚ
ValueErrorÚlenÚ_column_namesÚ_column_typesÚinsertÚ	_key_nameÚ	_key_typeÚ	enumerateÚitemsÚ_rowsÚappendr   Útupler   )ÚselfÚgroupsÚ
group_nameÚ
group_typeÚcolumn_namesÚcolumn_typesÚrowsÚindexÚkeyÚtableÚrows              úU/var/www/html/strategist-ai/venv/lib/python3.12/site-packages/agate/tableset/merge.pyÚmerger       s.  € ô, ˆFƒ|œ4Ñ FÐ$6ÜÐ9Ó:Ð:äˆFƒ|”tÑ¤ F£¬s°4«yÒ 8ÜÐJÓKÐKä˜×*Ñ*Ó+€LÜ˜×*Ñ*Ó+€Là×Ñ˜©™:¸¿¹ÔHØ×Ñ˜©™:¸¿¹ÔHà€Dä(¨¯©«Ó6ò NÑˆ‰|��UØ—;‘;ò 	NˆCØˆ~Ø—‘œC  ¬¨s«Ñ 3°\ÓBÕCà—‘œC ¨¡Ð 0´5¸³:Ñ =¸|ÓLÕMñ		NðNô ��| \Ó2Ð2ó    )NNN)Ú
agate.rowsr   Úagate.tabler   r    © r!   r   ú<module>r%      s   ðÝ Ý ô+3r!   