Ë
    ¤eh]n  ã                  ó$  — d Z ddlmZ ddlmZ ddlmZmZmZm	Z	m
Z
 ddlZddlZddlmZ ddlmZ ddlmZ dd	lmZmZ dd
lmZ ddlmZmZ ddlmZ ddlmZm Z  ddl!m"c m#Z$ ddl%m&Z&m'Z'm(Z(m)Z)m*Z*m+Z+m,Z, ddl-m.Z. erddl/m0Z0m1Z1m2Z2 ddl3m4Z4m5Z5m6Z6 ddl7m8Z8m9Z9 e
ddddddddddœ		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d"d„«       Z:e
ddddddddddœ		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d#d„«       Z:e
ddddddddddœ		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d$d„«       Z:e
dddddddddœ	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d%d„«       Z:e
ddddddddddœ		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d&d„«       Z:ddddddddddœ		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d&d„Z: G d„ d«      Z;d'd „Z<d(d)d!„Z=y)*z
Concat routines.
é    )Úannotations)Úabc)ÚTYPE_CHECKINGÚCallableÚLiteralÚcastÚoverloadN)Úusing_copy_on_write)Úcache_readonly)Úfind_stack_level)Úis_boolÚis_iterator)Úconcat_compat)ÚABCDataFrameÚ	ABCSeries)Úisna)Úfactorize_from_iterableÚfactorize_from_iterables)ÚIndexÚ
MultiIndexÚall_indexes_sameÚdefault_indexÚensure_indexÚget_objs_combined_axisÚget_unanimous_names)Úconcatenate_managers)ÚHashableÚIterableÚMapping)ÚAxisÚAxisIntÚ	HashableT)Ú	DataFrameÚSeries.)	ÚaxisÚjoinÚignore_indexÚkeysÚlevelsÚnamesÚverify_integrityÚsortÚcopyc       	         ó   — y ©N© ©
Úobjsr%   r&   r'   r(   r)   r*   r+   r,   r-   s
             úX/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/pandas/core/reshape/concat.pyÚconcatr4   H   ó   € ð ó    c       	         ó   — y r/   r0   r1   s
             r3   r4   r4   Y   r5   r6   c       	         ó   — y r/   r0   r1   s
             r3   r4   r4   j   r5   r6   )r&   r'   r(   r)   r*   r+   r,   r-   c       	         ó   — y r/   r0   r1   s
             r3   r4   r4   {   r5   r6   c       	         ó   — y r/   r0   r1   s
             r3   r4   r4   Œ   r5   r6   ÚouterFc       	        óŒ   — |	€t        «       rd}	nd}	n|	rt        «       rd}	t        | ||||||||	|¬«
      }
|
j                  «       S )ax  
    Concatenate pandas objects along a particular axis.

    Allows optional set logic along the other axes.

    Can also add a layer of hierarchical indexing on the concatenation axis,
    which may be useful if the labels are the same (or overlapping) on
    the passed axis number.

    Parameters
    ----------
    objs : a sequence or mapping of Series or DataFrame objects
        If a mapping is passed, the sorted keys will be used as the `keys`
        argument, unless it is passed, in which case the values will be
        selected (see below). Any None objects will be dropped silently unless
        they are all None in which case a ValueError will be raised.
    axis : {0/'index', 1/'columns'}, default 0
        The axis to concatenate along.
    join : {'inner', 'outer'}, default 'outer'
        How to handle indexes on other axis (or axes).
    ignore_index : bool, default False
        If True, do not use the index values along the concatenation axis. The
        resulting axis will be labeled 0, ..., n - 1. This is useful if you are
        concatenating objects where the concatenation axis does not have
        meaningful indexing information. Note the index values on the other
        axes are still respected in the join.
    keys : sequence, default None
        If multiple levels passed, should contain tuples. Construct
        hierarchical index using the passed keys as the outermost level.
    levels : list of sequences, default None
        Specific levels (unique values) to use for constructing a
        MultiIndex. Otherwise they will be inferred from the keys.
    names : list, default None
        Names for the levels in the resulting hierarchical index.
    verify_integrity : bool, default False
        Check whether the new concatenated axis contains duplicates. This can
        be very expensive relative to the actual data concatenation.
    sort : bool, default False
        Sort non-concatenation axis if it is not already aligned. One exception to
        this is when the non-concatentation axis is a DatetimeIndex and join='outer'
        and the axis is not already aligned. In that case, the non-concatenation
        axis is always sorted lexicographically.
    copy : bool, default True
        If False, do not copy data unnecessarily.

    Returns
    -------
    object, type of objs
        When concatenating all ``Series`` along the index (axis=0), a
        ``Series`` is returned. When ``objs`` contains at least one
        ``DataFrame``, a ``DataFrame`` is returned. When concatenating along
        the columns (axis=1), a ``DataFrame`` is returned.

    See Also
    --------
    DataFrame.join : Join DataFrames using indexes.
    DataFrame.merge : Merge DataFrames by indexes or columns.

    Notes
    -----
    The keys, levels, and names arguments are all optional.

    A walkthrough of how this method fits in with other tools for combining
    pandas objects can be found `here
    <https://pandas.pydata.org/pandas-docs/stable/user_guide/merging.html>`__.

    It is not recommended to build DataFrames by adding single rows in a
    for loop. Build a list of rows and make a DataFrame in a single concat.

    Examples
    --------
    Combine two ``Series``.

    >>> s1 = pd.Series(['a', 'b'])
    >>> s2 = pd.Series(['c', 'd'])
    >>> pd.concat([s1, s2])
    0    a
    1    b
    0    c
    1    d
    dtype: object

    Clear the existing index and reset it in the result
    by setting the ``ignore_index`` option to ``True``.

    >>> pd.concat([s1, s2], ignore_index=True)
    0    a
    1    b
    2    c
    3    d
    dtype: object

    Add a hierarchical index at the outermost level of
    the data with the ``keys`` option.

    >>> pd.concat([s1, s2], keys=['s1', 's2'])
    s1  0    a
        1    b
    s2  0    c
        1    d
    dtype: object

    Label the index keys you create with the ``names`` option.

    >>> pd.concat([s1, s2], keys=['s1', 's2'],
    ...           names=['Series name', 'Row ID'])
    Series name  Row ID
    s1           0         a
                 1         b
    s2           0         c
                 1         d
    dtype: object

    Combine two ``DataFrame`` objects with identical columns.

    >>> df1 = pd.DataFrame([['a', 1], ['b', 2]],
    ...                    columns=['letter', 'number'])
    >>> df1
      letter  number
    0      a       1
    1      b       2
    >>> df2 = pd.DataFrame([['c', 3], ['d', 4]],
    ...                    columns=['letter', 'number'])
    >>> df2
      letter  number
    0      c       3
    1      d       4
    >>> pd.concat([df1, df2])
      letter  number
    0      a       1
    1      b       2
    0      c       3
    1      d       4

    Combine ``DataFrame`` objects with overlapping columns
    and return everything. Columns outside the intersection will
    be filled with ``NaN`` values.

    >>> df3 = pd.DataFrame([['c', 3, 'cat'], ['d', 4, 'dog']],
    ...                    columns=['letter', 'number', 'animal'])
    >>> df3
      letter  number animal
    0      c       3    cat
    1      d       4    dog
    >>> pd.concat([df1, df3], sort=False)
      letter  number animal
    0      a       1    NaN
    1      b       2    NaN
    0      c       3    cat
    1      d       4    dog

    Combine ``DataFrame`` objects with overlapping columns
    and return only those that are shared by passing ``inner`` to
    the ``join`` keyword argument.

    >>> pd.concat([df1, df3], join="inner")
      letter  number
    0      a       1
    1      b       2
    0      c       3
    1      d       4

    Combine ``DataFrame`` objects horizontally along the x axis by
    passing in ``axis=1``.

    >>> df4 = pd.DataFrame([['bird', 'polly'], ['monkey', 'george']],
    ...                    columns=['animal', 'name'])
    >>> pd.concat([df1, df4], axis=1)
      letter  number  animal    name
    0      a       1    bird   polly
    1      b       2  monkey  george

    Prevent the result from including duplicate index values with the
    ``verify_integrity`` option.

    >>> df5 = pd.DataFrame([1], index=['a'])
    >>> df5
       0
    a  1
    >>> df6 = pd.DataFrame([2], index=['a'])
    >>> df6
       0
    a  2
    >>> pd.concat([df5, df6], verify_integrity=True)
    Traceback (most recent call last):
        ...
    ValueError: Indexes have overlapping values: ['a']

    Append a single row to the end of a ``DataFrame`` object.

    >>> df7 = pd.DataFrame({'a': 1, 'b': 2}, index=[0])
    >>> df7
        a   b
    0   1   2
    >>> new_row = pd.Series({'a': 3, 'b': 4})
    >>> new_row
    a    3
    b    4
    dtype: int64
    >>> pd.concat([df7, new_row.to_frame().T], ignore_index=True)
        a   b
    0   1   2
    1   3   4
    FT)	r%   r'   r&   r(   r)   r*   r+   r-   r,   )r
   Ú_ConcatenatorÚ
get_result)r2   r%   r&   r'   r(   r)   r*   r+   r,   r-   Úops              r3   r4   r4   �   s^   € ðr €|ÜÔ Ø‰Dà‰DÙ	Ô%Ô'Øˆä	ØØØ!ØØØØØ)ØØô
€Bð �=‰=‹?Ðr6   c                  óè   — e Zd ZU dZded<   	 	 	 	 	 	 	 	 	 d	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dd„Zdd„Z	 	 	 	 dd„Z	 	 	 	 	 	 dd„Z	 	 	 	 	 	 	 	 	 	 dd	„Z	d
„ Z
dd„Zedd„«       Zdd„Zedd„«       Zdd„Zy)r=   zB
    Orchestrates a concatenation operation for BlockManagers
    Úboolr,   Nc                óh  — t        |t        t        t        f«      r"t	        dt        |«      j                  › d�«      ‚|dk(  rd| _        n|dk(  rd| _        nt        d«      ‚t        |
«      st        d|
› d	�«      ‚|
| _
        || _        || _        |	| _        | j                  ||«      \  }}| j                  |«      }| j!                  |||||«      \  }}|j"                  d
k(  r'ddlm}  |j(                  |«      }d| _        d| _        n0|j)                  |«      }d| _        d| _        |j/                  |«      }t1        |«      d
kD  r| j3                  ||||«      }|| _        || _        | j*                  rd
| j6                  z
  nd| _        || _        |xs t=        |dd «      | _        || _         y )NzTfirst argument must be an iterable of pandas objects, you passed an object of type "ú"r;   FÚinnerTz?Only can inner (intersect) or outer (union) join the other axisz0The 'sort' keyword only accepts boolean values; z was passed.é   r   )r#   r*   )!Ú
isinstancer   r   ÚstrÚ	TypeErrorÚtypeÚ__name__Ú	intersectÚ
ValueErrorr   r,   r'   r+   r-   Ú_clean_keys_and_objsÚ
_get_ndimsÚ_get_sample_objectÚndimÚpandasr#   Ú_get_axis_numberÚ	_is_frameÚ
_is_seriesÚ_get_block_manager_axisÚlenÚ_sanitize_mixed_ndimr2   Úbm_axisr%   r(   Úgetattrr*   r)   )Úselfr2   r%   r&   r(   r)   r*   r'   r+   r-   r,   ÚndimsÚsampler#   s                 r3   Ú__init__z_Concatenator.__init__•  sÀ  € ô �dœY¬´cÐ:Ô;Üð:Ü:>¸t»*×:MÑ:MÐ9NÈaðQóð ð
 �7Š?Ø"ˆD�NØ�WŠ_Ø!ˆD�NäØQóð ô �tŒ}ÜØBÀ4À&ÈÐUóð ð
 ˆŒ	à(ˆÔØ 0ˆÔØˆŒ	à×.Ñ.¨t°TÓ:‰
ˆˆdð —‘ Ó%ˆØ×.Ñ.¨t°U¸DÀ%ÈÓP‰ˆ�ð �;‰;˜!ÒÝ(à-�9×-Ñ-¨dÓ3ˆDØ"ˆDŒNØ"ˆD�Oà×*Ñ*¨4Ó0ˆDØ!ˆDŒNØ#ˆDŒOð ×1Ñ1°$Ó7ˆDô ˆu‹:˜Š>Ø×,Ñ,¨T°6¸<ÈÓNˆDàˆŒ	ð ˆŒØ(,¯ª�A˜Ÿ™Ò$¸AˆŒ	ØˆŒ	ØÒ:œg d¨G°TÓ:ˆŒ
Øˆ�r6   c                ó¾   — t        «       }|D ]M  }t        |t        t        f«      sdt	        |«      › d�}t        |«      ‚|j                  |j                  «       ŒO |S )Nz#cannot concatenate object of type 'z+'; only Series and DataFrame objs are valid)ÚsetrF   r   r   rI   rH   ÚaddrP   )rZ   r2   r[   ÚobjÚmsgs        r3   rN   z_Concatenator._get_ndimsà  se   € ä“ˆØò 	 ˆCÜ˜c¤I¬|Ð#<Ô=à9¼$¸s»)¸ð E?ð ?ð ô   “nÐ$à�I‰I�c—h‘hÕð	 ð ˆr6   c           	     ó4  — t        |t        j                  «      r.|€t        |j	                  «       «      }|D �cg c]  }||   ‘Œ	 }}nt        |«      }t        |«      dk(  rt        d«      ‚|€t        t        j                  |Ž «      }níg }g }t        |«      rt        |«      }t        |«      t        |«      k7  r$t        j                  dt        t        «       ¬«       t        ||«      D ]*  \  }}|€Œ	|j                  |«       |j                  |«       Œ, |}t        |t         «      r't#        |«      j%                  ||j&                  ¬«      }n&t)        |dd «      }t+        ||t)        |dd «      ¬«      }t        |«      dk(  rt        d	«      ‚||fS c c}w )
Nr   zNo objects to concatenatez¢The behavior of pd.concat with len(keys) != len(objs) is deprecated. In a future version this will raise instead of truncating to the smaller of the two sequences)Ú
stacklevel)r*   ÚnameÚdtype)re   rf   zAll objects passed were None)rF   r   r   Úlistr(   rV   rL   ÚcomÚnot_noner   ÚwarningsÚwarnÚFutureWarningr   ÚzipÚappendr   rI   Úfrom_tuplesr*   rY   r   )	rZ   r2   r(   ÚkÚ	objs_listÚ
clean_keysÚ
clean_objsÚvre   s	            r3   rM   z"_Concatenator._clean_keys_and_objsî  s}  € ô
 �dœCŸK™KÔ(Øˆ|Ü˜DŸI™I›KÓ(�Ø*.Ö/ Q˜˜a›Ð/ˆIÑ/ä˜T›
ˆIäˆy‹>˜QÒÜÐ8Ó9Ð9àˆ<ÜœSŸ\™\¨9Ð5Ó6‰Ið ˆJØˆJÜ˜4Ô Ü˜D“z�Ü�4‹yœC 	›NÒ*ä—‘ðEô "Ü/Ó1õô ˜D )Ó,ò %‘��1Ø�9ØØ×!Ñ! !Ô$Ø×!Ñ! !Õ$ð	%ð
 #ˆIä˜$¤
Ô+ä˜D“z×-Ñ-¨jÀÇ
Á
Ð-ÓK‘ä˜t V¨TÓ2�Ü˜Z¨d¼'À$ÈÐQUÓ:VÔW�äˆy‹>˜QÒÜÐ;Ó<Ð<à˜$ˆÐùòS 0s   ºFc                ó„  — d }t        |«      dkD  rFt        |«      }|D ]5  }|j                  |k(  sŒt        j                  |j
                  «      sŒ3|} n] n[|D �cg c],  }t	        |j
                  «      dkD  s|j                  dk(  sŒ+|‘Œ. }	}t        |	«      r|€|€|€| j                  s|	}|d   }|€|d   }||fS c c}w )NrE   r   )rV   ÚmaxrP   ÚnpÚsumÚshaperK   )
rZ   r2   r[   r(   r*   r)   r\   Úmax_ndimra   Únon_emptiess
             r3   rO   z _Concatenator._get_sample_object!  sÅ   € ð -1ˆÜˆu‹:˜Š>Ü˜5“zˆHØò �Ø—8‘8˜xÓ'¬B¯F©F°3·9±9Õ,=Ø �FÙñð +/ÖV 3´#°c·i±i³.À1Ò2DÈÏÉÐTUËš3ÐVˆKÐVä�;ÔØ�  °6°>È$Ï.Ê.à"�Ø˜a™�àˆ>Ø˜!‘WˆFØ�tˆ|Ðùò Ws   Á,B=ÂB=c                ó
  — g }d}|j                   }|D ]m  }|j                   }	|	|k(  rnH|	|dz
  k7  rt        d«      ‚t        |dd «      }
|s|
€|dk(  rd}
n|}
|dz  }|j                  |
|id¬«      }|j	                  |«       Œo |S )Nr   rE   z>cannot concatenate unaligned mixed dimensional NDFrame objectsre   F)r-   )rP   rL   rY   Ú_constructorrn   )rZ   r2   r\   r'   r%   Únew_objsÚcurrent_columnrz   ra   rP   re   s              r3   rW   z"_Concatenator._sanitize_mixed_ndimC  s¸   € ð ˆàˆØ—;‘;ˆØò 	!ˆCØ—8‘8ˆDØ�xÒØà˜ A™Ò%Ü ØTóð ô
 ˜s F¨DÓ1�Ù 4 <Ø˜q’yð  !™ð  .˜Ø&¨!Ñ+˜à×)Ñ)¨4°¨+¸EÐ)ÓB�à�O‰O˜CÕ ð3	!ð6 ˆr6   c           	     ó¶  — | j                   �r•t        d| j                  d   «      }| j                  dk(  rèt	        j
                  | j                  «      }|j                  }| j                  D �cg c]  }|j                  ‘Œ }}t        |d¬«      }| j                  rt        t        |«      «      }n| j                  d   }t        |j                  «      j                  ||¬«      }|j!                  ||j"                  ¬«      }	||	_        |	j'                  | d¬«      S t)        t+        t-        t        | j                  «      «      | j                  «      «      }
|j.                  }| j                  \  }} ||
|| j0                  ¬«      }||_        |j'                  | d¬«      S t        d	| j                  d   «      }g }| j                  D ]†  }i }t5        | j                  «      D ]M  \  }}|| j                  k(  rŒ|j"                  d
|z
     }|j7                  |«      rŒ:|j9                  |«      ||<   ŒO |j;                  |j                  |f«       Œˆ t=        || j                  | j                  | j0                  ¬«      }| j0                  st?        «       s|jA                  «        |j!                  ||j"                  ¬«      }|j'                  | d¬«      S c c}w )Nr$   r   )r%   )Úindex)Úaxesr4   )Úmethod)r�   r-   r#   rE   )Úconcat_axisr-   )!rT   r   r2   rX   rh   Úconsensus_name_attrr}   Ú_valuesr   r'   r   rV   Únew_axesrI   Ú_mgrÚ
from_arrayÚ_constructor_from_mgrr‚   Ú_nameÚ__finalize__Údictrm   ÚrangeÚ_constructor_expanddimr-   ÚcolumnsÚ	enumerateÚequalsÚget_indexerrn   r   r
   Ú_consolidate_inplace)rZ   r\   re   ÚconsÚserÚarrsÚresÚ	new_indexÚmgrÚresultÚdatar�   r�   ÚdfÚmgrs_indexersra   ÚindexersÚaxÚ
new_labelsÚ
obj_labelsÚnew_dataÚouts                         r3   r>   z_Concatenator.get_resultn  sx  € ð
 �?‹?Ü˜( D§I¡I¨a¡LÓ1ˆFð �|‰|˜qÒ Ü×.Ñ.¨t¯y©yÓ9�Ø×*Ñ*�à/3¯y©yÖ9¨˜Ÿ›Ð9�Ð9ä# D¨qÔ1�ð ×$Ò$ä -¬c°#«hÓ 7‘Ià $§¡¨aÑ 0�Iä˜6Ÿ;™;Ó'×2Ñ2°3¸iÐ2ÓH�à×5Ñ5°cÀÇÁÐ5ÓI�Ø#�”Ø×*Ñ*¨4¸Ð*ÓAÐAô œC¤¤c¨$¯)©)£nÓ 5°t·y±yÓAÓB�ð ×4Ñ4�à!%§¡‘��wÙ˜$ e°$·)±)Ô<�Ø$�”
Ø—‘ t°H�Ó=Ð=ô ˜+ t§y¡y°¡|Ó4ˆFàˆMØ—y‘yò ;�Ø�Ü&/°·±Ó&>ò 	J‘N�B˜
à˜TŸ\™\Ò)à ð "%§¡¨!¨b©&Ñ!1�JØ%×,Ñ,¨ZÕ8Ø'1×'=Ñ'=¸jÓ'I˜ šð	Jð ×$Ñ$ c§h¡h°Ð%9Õ:ð;ô ,Ø˜tŸ}™}¸$¿,¹,ÈTÏYÉYôˆHð —9’9Ô%8Ô%:Ø×-Ñ-Ô/à×.Ñ.¨x¸h¿m¹mÐ.ÓLˆCØ×#Ñ# D°Ð#Ó:Ð:ùòq :s   Á/Kc                ól   — | j                   r| j                  dk(  ry| j                  d   j                  S )NrE   é   r   )rT   rX   r2   rP   )rZ   s    r3   Ú_get_result_dimz_Concatenator._get_result_dimµ  s+   € Ø�?Š?˜tŸ|™|¨qÒ0Øà—9‘9˜Q‘<×$Ñ$Ð$r6   c                ó²   — | j                  «       }t        |«      D �cg c].  }|| j                  k(  r| j                  n| j	                  |«      ‘Œ0 c}S c c}w r/   )r§   rŽ   rX   Ú_get_concat_axisÚ_get_comb_axis)rZ   rP   Úis      r3   r‡   z_Concatenator.new_axes»  sX   € à×#Ñ#Ó%ˆô ˜4“[ö
àð &'¨$¯,©,Ò%6ˆD×!Ò!¸D×<OÑ<OÐPQÓ<RÑRò
ð 	
ùò 
s   ž3Ac                ó®   — | j                   d   j                  |«      }t        | j                   || j                  | j                  | j
                  ¬«      S )Nr   )r%   rK   r,   r-   )r2   rU   r   rK   r,   r-   )rZ   r«   Ú	data_axiss      r3   rª   z_Concatenator._get_comb_axisÃ  sF   € Ø—I‘I˜a‘L×8Ñ8¸Ó;ˆ	Ü%Ø�I‰IØØ—n‘nØ—‘Ø—‘ô
ð 	
r6   c                ón  — | j                   �rX| j                  dk(  r%| j                  D �cg c]  }|j                  ‘Œ }}�nT| j                  r t        t        | j                  «      «      }|S | j                  €¾dgt        | j                  «      z  }d}d}t        | j                  «      D ]^  \  }}|j                  dk7  r"t        dt        |«      j                  › d�«      ‚|j                  �|j                  ||<   d}ŒU|||<   |dz  }Œ` |rt        |«      S t        t        | j                  «      «      S t        | j                  «      j!                  | j"                  «      S | j                  D �cg c]  }|j$                  | j&                     ‘Œ }}| j                  rt        t)        d„ |D «       «      «      }|S | j                  €#| j*                  �t-        d	«      ‚t/        |«      }n,t1        || j                  | j*                  | j"                  «      }| j3                  |«       |S c c}w c c}w )
zC
        Return index to be used along concatenation axis.
        r   NFrE   z6Cannot concatenate type 'Series' with object of type 'ú'Tc              3  ó2   K  — | ]  }t        |«      –— Œ y ­wr/   )rV   )Ú.0r«   s     r3   ú	<genexpr>z1_Concatenator._get_concat_axis.<locals>.<genexpr>ò  s   è ø€ Ò#<¨q¤C¨§FÑ#<ùs   ‚z+levels supported only when keys is not None)rT   rX   r2   r�   r'   r   rV   r(   r‘   rP   rH   rI   rJ   re   r   r   Ú	set_namesr*   r‚   r%   rx   r)   rL   Ú_concat_indexesÚ_make_concat_multiindexÚ_maybe_check_integrity)	rZ   ÚxÚindexesÚidxr*   ÚnumÚ	has_namesr«   r„   s	            r3   r©   z_Concatenator._get_concat_axisÍ  sì  € ð
 �?‹?Ø�|‰|˜qÒ Ø,0¯I©IÖ6 q˜1Ÿ7›7Ð6�Ò6Ø×"Ò"Ü#¤C¨¯	©	£NÓ3�Ø�
Ø—‘Ð"Ø)-¨´°T·Y±Y³Ñ(?�Ø�Ø!�	Ü% d§i¡iÓ0ò !‘D�A�qØ—v‘v ’{Ü'ð/Ü/3°A«w×/?Ñ/?Ð.@ÀðCóð ð —v‘vÐ)Ø#$§6¡6˜˜a™Ø$(™	à#&˜˜a™Ø˜q™™ð!ñ Ü  ›<Ð'ä(¬¨T¯Y©Y«Ó8Ð8ä# D§I¡IÓ.×8Ñ8¸¿¹ÓDÐDà26·)±)Ö<¨Q�q—v‘v˜dŸi™iÓ(Ð<ˆGÐ<à×ÒÜ¤Ñ#<°GÔ#<Ó <Ó=ˆCØˆJà�9‰9ÐØ�{‰{Ð&Ü Ð!NÓOÐOÜ)¨'Ó2‰Kä1Ø˜Ÿ™ D§K¡K°·±óˆKð 	×#Ñ# KÔ0àÐùòY 7ùò6 =s   «H-Å4 H2c                ó”   — | j                   r<|j                  s/||j                  «          j                  «       }t	        d|› �«      ‚y y )Nz!Indexes have overlapping values: )r+   Ú	is_uniqueÚ
duplicatedÚuniquerL   )rZ   Úconcat_indexÚoverlaps      r3   r¶   z$_Concatenator._maybe_check_integrity  sM   € Ø× Ò Ø×)Ò)Ø& |×'>Ñ'>Ó'@ÑA×HÑHÓJ�Ü Ð#DÀWÀIÐ!NÓOÐOð *ð !r6   )	r   r;   NNNFFTF)r2   úEIterable[Series | DataFrame] | Mapping[HashableT, Series | DataFrame]r%   r    r&   rG   r(   úIterable[Hashable] | Noner*   úlist[HashableT] | Noner'   rA   r+   rA   r-   rA   r,   rA   ÚreturnÚNone)r2   úlist[Series | DataFrame]rÅ   úset[int])r2   rÂ   rÅ   z-tuple[list[Series | DataFrame], Index | None])r2   rÇ   r[   rÈ   rÅ   z3tuple[Series | DataFrame, list[Series | DataFrame]])
r2   rÇ   r\   zSeries | DataFramer'   rA   r%   r!   rÅ   rÇ   )rÅ   Úint)rÅ   zlist[Index])r«   r!   rÅ   r   ©rÅ   r   )rÀ   r   )rJ   Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r]   rN   rM   rO   rW   r>   r§   r   r‡   rª   r©   r¶   r0   r6   r3   r=   r=   Ž  sS  … ñð ƒJð
 ØØ*.ØØ(,Ø"Ø!&ØØðIàSðIð ðIð ð	Ið
 (ðIð &ðIð ðIð ðIð ðIð ðIð 
óIóVð1àSð1ð 
7ó	1ðf à&ð ð ð ð 
=ó ðD)à&ð)ð #ð)ð ð	)ð
 ð)ð 
"ó)òVE;óN%ð ò
ó ð
ó
ð ò2ó ð2ôhPr6   r=   c                ó0   — | d   j                  | dd  «      S )Nr   rE   )rn   )r¸   s    r3   r´   r´   	  s   € Ø�1‰:×Ñ˜W Q R˜[Ó)Ð)r6   c           
     óL
  — |€t        |d   t        «      s|�Zt        |«      dkD  rLt        t	        |Ž «      }|€d gt        |«      z  }|€t        |«      \  }}nV|D �cg c]  }t        |«      ‘Œ }}n=|g}|€d g}|€t        |«      j                  «       g}n|D �cg c]  }t        |«      ‘Œ }}|D ]*  }|j                  rŒt        d|j                  «       › �«      ‚ t        | «      rt        d„ |D «       «      �sVg }t	        ||«      D �]B  \  }	}g }
t        |	t        «      rk|	j                  |«      rZ| D �cg c]  }t        |«      ‘Œ }}|j                  t!        j"                  t!        j$                  t        |	«      «      |«      «       Œ„t	        |	| «      D ]Œ  \  }}t'        |«      t'        |«      z  ||k(  z  }|j)                  «       st        d|› d|› �«      ‚t!        j*                  |«      d   d   }|
j                  t!        j"                  |t        |«      «      «       ŒŽ |j                  t!        j,                  |
«      «       �ŒE t/        | «      }t        |t0        «      r7|j3                  |j4                  «       |j3                  |j6                  «       n0t9        |«      \  }}|j                  |«       |j                  |«       t        |«      t        |«      k(  rt        |«      }nNt        | D �ch c]  }|j:                  ’Œ c}«      dk(  st=        d«      ‚t        |«      t        t?        | Ž «      z   }t1        |||d¬	«      S | d   }t        |«      }t        | «      }t        |«      }t        |«      }g }t	        ||«      D ]l  \  }	}t        |	«      }|jA                  |«      }|d
k(  }|j)                  «       rt        d||   ›�«      ‚|j                  t!        j"                  ||«      «       Œn t        |t0        «      rY|j3                  |j4                  «       |j3                  |j6                  D �cg c]  }t!        jB                  ||«      ‘Œ c}«       nc|j                  |j                  «       «       |j                  «       jA                  |«      }|j                  t!        jB                  ||«      «       t        |«      t        |«      k  r|j3                  |jD                  «       t1        |||d¬	«      S c c}w c c}w c c}w c c}w c c}w )Nr   rE   zLevel values not unique: c              3  ó4   K  — | ]  }|j                   –— Œ y ­wr/   )r½   )r±   Úlevels     r3   r²   z*_make_concat_multiindex.<locals>.<genexpr>'  s   è ø€ Ò/TÀE°·µÑ/Tùs   ‚zKey z not in level z@Cannot concat indices that do not have the same number of levelsF)r)   Úcodesr*   r+   éÿÿÿÿz"Values not found in passed level: )#rF   ÚtuplerV   rg   rm   r   r   r¿   r½   rL   Útolistr   Úallr   r’   rn   rw   ÚrepeatÚaranger   ÚanyÚnonzeroÚconcatenater´   r   Úextendr)   rÓ   r   ÚnlevelsÚAssertionErrorr   r“   Útiler*   )r¸   r(   r)   r*   ÚzippedÚ_r·   rÒ   Ú
codes_listÚhlevelÚ	to_concatr¹   ÚlensÚkeyr�   Úmaskr«   rÀ   rÓ   Ú
categoriesr™   ÚnÚkpiecesÚ	new_namesÚ
new_levelsÚ	new_codesÚhlevel_indexÚmappedÚlabÚsingle_codess                                 r3   rµ   rµ     s—  € Øˆœ: d¨1¡g¬uÔ5ØÐœs 6›{¨Qšä”c˜4�jÓ!ˆØˆ=Ø�FœS ›[Ñ(ˆEàˆ>Ü0°Ó8‰IˆA‰và/5Ö6¨!”l 1•oÐ6ˆFÑ6à�ˆØˆ=Ø�FˆEàˆ>Ü" 4Ó(×/Ñ/Ó1Ð2‰Fà/5Ö6¨!”l 1•oÐ6ˆFÐ6àò KˆØ�‹ÜÐ8¸¿¹»Ð8HÐIÓJÐJðKô ˜GÔ$¬CÑ/TÈVÔ/TÕ,TØˆ
ô
 ! ¨Ó0ó 	=‰MˆF�EØˆIÜ˜&¤%Ô(¨V¯]©]¸5Ô-AØ,3Ö4 Sœ˜C�Ð4�Ð4Ø×!Ñ!¤"§)¡)¬B¯I©I´c¸&³kÓ,BÀDÓ"IÕJä"% f¨gÓ"6ò ?‘J�C˜ä  ›K¬$¨s«)Ñ3¸À¹ÑE�DØŸ8™8œ:Ü(¨4°¨u°NÀ5À'Ð)JÓKÐKÜŸ
™
 4Ó(¨Ñ+¨AÑ.�Aà×$Ñ$¤R§Y¡Y¨q´#°e³*Ó%=Õ>ð?ð ×!Ñ!¤"§.¡.°Ó";Ö<ð	=ô  ' wÓ/ˆô �l¤JÔ/Ø�M‰M˜,×-Ñ-Ô.Ø×Ñ˜l×0Ñ0Õ1ä 7¸Ó EÑˆE�:Ø�M‰M˜*Ô%Ø×Ñ˜eÔ$äˆu‹:œ˜V›Ò$Ü˜“K‰Eô ¨wÖ7¨˜Ÿ›Ò7Ó8¸AÒ=Ü$ØVóð ô
 ˜“K¤$Ô':¸GÐ'DÓ"EÑEˆEäØ °5È5ô
ð 	
ð ˜‘
€IÜˆI‹€AÜ�'‹l€Gô �U“€IÜ�f“€Jð €Iô ˜V VÓ,ò 
/‰ˆ�Ü# FÓ+ˆØ×"Ñ" <Ó0ˆà˜‰|ˆØ�8‰8Œ:ÜØ4°\À$Ñ5GÐ4JÐKóð ð 	×ÑœŸ™ 6¨1Ó-Õ.ð
/ô �)œZÔ(Ø×Ñ˜)×*Ñ*Ô+Ø×Ñ¸9¿?¹?ÖK°Cœ"Ÿ'™' # wÕ/ÒKÕLà×Ñ˜)×*Ñ*Ó,Ô-Ø ×'Ñ'Ó)×5Ñ5°iÓ@ˆØ×ÑœŸ™ ¨wÓ7Ô8ä
ˆ9ƒ~œ˜J›Ò'Ø×Ñ˜Ÿ™Ô)äØ °)Èeôð ùòI 7ùò 7ùò 5ùò8 8ùòN Ls   ÁTÂTÄ8TË>TÑT!)r2   z3Iterable[DataFrame] | Mapping[HashableT, DataFrame]r%   úLiteral[0, 'index']r&   rG   r'   rA   r(   rÃ   r*   rÄ   r+   rA   r,   rA   r-   úbool | NonerÅ   r#   )r2   z-Iterable[Series] | Mapping[HashableT, Series]r%   ró   r&   rG   r'   rA   r(   rÃ   r*   rÄ   r+   rA   r,   rA   r-   rô   rÅ   r$   )r2   rÂ   r%   ró   r&   rG   r'   rA   r(   rÃ   r*   rÄ   r+   rA   r,   rA   r-   rô   rÅ   úDataFrame | Series)r2   rÂ   r%   zLiteral[1, 'columns']r&   rG   r'   rA   r(   rÃ   r*   rÄ   r+   rA   r,   rA   r-   rô   rÅ   r#   )r2   rÂ   r%   r    r&   rG   r'   rA   r(   rÃ   r*   rÄ   r+   rA   r,   rA   r-   rô   rÅ   rõ   rÊ   )NN)rÅ   r   )>rÍ   Ú
__future__r   Úcollectionsr   Útypingr   r   r   r   r	   rj   Únumpyrw   Úpandas._configr
   Úpandas.util._decoratorsr   Úpandas.util._exceptionsr   Úpandas.core.dtypes.commonr   r   Úpandas.core.dtypes.concatr   Úpandas.core.dtypes.genericr   r   Úpandas.core.dtypes.missingr   Úpandas.core.arrays.categoricalr   r   Úpandas.core.commonÚcoreÚcommonrh   Úpandas.core.indexes.apir   r   r   r   r   r   r   Úpandas.core.internalsr   Úcollections.abcr   r   r   Úpandas._typingr    r!   r"   rQ   r#   r$   r4   r=   r´   rµ   r0   r6   r3   ú<module>r	     s  ðñõ #å ÷õ ó ã å .å 2Ý 4÷õ 4÷õ ,÷÷ !Ð  ÷÷ ñ õ 7á÷ñ ÷ñ ÷ð 
ð !$ØØØ&)ØØ$'Ø ØØñØ
=ðð ðð ð	ð
 ðð $ðð "ðð ðð ðð ðð òó 
ðð  
ð !$ØØØ&)ØØ$'Ø ØØñØ
7ðð ðð ð	ð
 ðð $ðð "ðð ðð ðð ðð òó 
ðð  
ð !$ØØØ&)ØØ$'Ø ØØñØ
Oðð ðð ð	ð
 ðð $ðð "ðð ðð ðð ðð òó 
ðð  
ð
 ØØ&)ØØ$'Ø ØØñØ
Oðð  ðð ð	ð
 ðð $ðð "ðð ðð ðð ðð òó 
ðð  
ð ØØØ&)ØØ$'Ø ØØñØ
Oðð ðð ð	ð
 ðð $ðð "ðð ðð ðð ðð òó 
ðð& ØØØ&*ØØ$(Ø"ØØñnØ
Oðnð ðnð ð	nð
 ðnð $ðnð "ðnð ðnð ðnð ðnð ón÷bxPñ xPóv*õqr6   