py-polars/polars/functions.py
def concat(
    items: Union[Sequence["pl.DataFrame"], Sequence["pl.Series"]], rechunk: bool = True
) -> Union["pl.DataFrame", "pl.Series"]:
    """
    Aggregate all the Dataframes/Series in a List of DataFrames/Series to a single DataFrame/Series.

    Parameters
    ----------
    items
        DataFrames/Series to concatenate.
    rechunk
        rechunk the final DataFrame/Series.
    """
    if not len(items) > 0:
        raise ValueError("cannot concat empty list")

    out: Union["pl.Series", "pl.DataFrame"]
    if isinstance(items[0], pl.DataFrame):
        out = pl.wrap_df(_concat_df(items))
    else:
        out = pl.wrap_s(_concat_series(items))

    if rechunk:
        return out.rechunk()  # type: ignore
    return out

    Aggregate all the Dataframes/Series in a List of DataFrames/Series to a single DataFrame/Series.

    Parameters
    ----------
    items
        DataFrames/Series to concatenate.
    rechunk
        rechunk the final DataFrame/Series.
    
Aggregate all the Dataframes/Series in a List of DataFrames/Series to a single DataFrame/Series.
Parameters

items
DataFrames/Series to concatenate.
rechunk
rechunk the final DataFrame/Series.
Aggregate all the Dataframes / Series in a List of DataFrames / Series to a single DataFrame / Series . Parameters items DataFrames / Series to concatenate . rechunk rechunk the final DataFrame / Series .
def concat(
    items: Union[Sequence["pl.DataFrame"], Sequence["pl.Series"]], rechunk: bool = True
) -> Union["pl.DataFrame", "pl.Series"]:
    if not len(items) > 0:
        raise ValueError("cannot concat empty list")
    out: Union["pl.Series", "pl.DataFrame"]
    if isinstance(items[0], pl.DataFrame):
        out = pl.wrap_df(_concat_df(items))
    else:
        out = pl.wrap_s(_concat_series(items))
    if rechunk:
        return out.rechunk()  
    return out
def concat ( items : Union [ Sequence [ "pl.DataFrame" ] , Sequence [ "pl.Series" ] ] , rechunk : bool = True ) -> Union [ "pl.DataFrame" , "pl.Series" ] : if not len ( items ) > 0 : raise ValueError ( "cannot concat empty list" ) out : Union [ "pl.Series" , "pl.DataFrame" ] if isinstance ( items [ 0 ] , pl . DataFrame ) : out = pl . wrap_df ( _concat_df ( items ) ) else : out = pl . wrap_s ( _concat_series ( items ) ) if rechunk : return out . rechunk ( ) return out
Aggregate all the Dataframes/Series in a List of DataFrames/Series to a single DataFrame/Series.
Aggregate all the Dataframes / Series in a List of DataFrames / Series to a single DataFrame / Series .
"""
    Aggregate all the Dataframes/Series in a List of DataFrames/Series to a single DataFrame/Series.

    Parameters
    ----------
    items
        DataFrames/Series to concatenate.
    rechunk
        rechunk the final DataFrame/Series.
    """ # type: ignore
items
Union[Sequence["pl.DataFrame"], Sequence["pl.Series"]]
rechunk
bool