turntable/press.py
def collection_to_df(collection):
    ''' 
    Converts a collection back into a pandas DataFrame

    parameters
    ----------
    collection : list
        list of Record objects where each Record represents one row from a dataframe

    Returns
    -------
    df : pandas.DataFrame
        DataFrame of length=len(collection) where each row represents one Record 

    '''

    return pd.concat([record.series for record in collection], axis=1).T
def collection_to_df(collection):
    ''' 
    Converts a collection back into a pandas DataFrame

    parameters
    ----------
    collection : list
        list of Record objects where each Record represents one row from a dataframe

    Returns
    -------
    df : pandas.DataFrame
        DataFrame of length=len(collection) where each row represents one Record 

    '''

    return pd.concat([record.series for record in collection], axis=1).T
def collection_to_df ( collection ) : return pd . concat ( [ record . series for record in collection ] , axis = 1 ) . T
Converts a collection back into a pandas DataFrame

    parameters
    ----------
    collection : list
        list of Record objects where each Record represents one row from a dataframe

    Returns
    -------
    df : pandas.DataFrame
        DataFrame of length=len(collection) where each row represents one Record
Converts a collection back into a pandas DataFrame