src/ei_mcoe/ei_mcoe.py
def output_aesthetic(df, add_sources=False):
    """Change column names; add sources as multindex if specified."""
    logger.info('Making it look pretty...')
    # Make a list of columns that are in the level df (with or without mcoe)
    new_cols = [x for x in list(name_clean_dict.keys())
                if x in df.columns.tolist()]
    # Rename columns
    df_clean = (
        df[new_cols].rename(columns=name_clean_dict))
    # Potential to add sources as multindex
    if add_sources is True:
        df_clean = add_source_cols(df_clean)
    return df_clean
Change column names; add sources as multindex if specified.
Change column names; add sources as multindex if specified.
Change column names ; add sources as multindex if specified .
def output_aesthetic(df, add_sources=False):
    logger.info('Making it look pretty...')
    new_cols = [x for x in list(name_clean_dict.keys())
                if x in df.columns.tolist()]
    df_clean = (
        df[new_cols].rename(columns=name_clean_dict))
    if add_sources is True:
        df_clean = add_source_cols(df_clean)
    return df_clean
def output_aesthetic ( df , add_sources = False ) : logger . info ( 'Making it look pretty...' ) new_cols = [ x for x in list ( name_clean_dict . keys ( ) ) if x in df . columns . tolist ( ) ] df_clean = ( df [ new_cols ] . rename ( columns = name_clean_dict ) ) if add_sources is True : df_clean = add_source_cols ( df_clean ) return df_clean
Change column names; add sources as multindex if specified.
Change column names ; add sources as multindex if specified .
"""Change column names; add sources as multindex if specified.""" # Make a list of columns that are in the level df (with or without mcoe) # Rename columns # Potential to add sources as multindex
df
add_sources