src/ei_mcoe/ei_mcoe.py
def generate_source_df():
    """Create a DataFrame with column headers and their respective sources."""
    logger.info('Generating separate source dataframe')
    source_df = (
        pd.DataFrame(data_source_dict).T
        .reset_index()
        .rename(columns={'index': 'Column Long Name',
                         0: 'Source',
                         1: 'Description'}))

    source_df = pd.merge(
        (pd.DataFrame(index=name_clean_dict, data=name_clean_dict.values())
         .reset_index()
         .rename(columns={'index': 'Column Name',
                          0: 'Column Long Name',
                          })),
        source_df
    )
    return source_df
Create a DataFrame with column headers and their respective sources.
Create a DataFrame with column headers and their respective sources.
Create a DataFrame with column headers and their respective sources .
def generate_source_df():
    logger.info('Generating separate source dataframe')
    source_df = (
        pd.DataFrame(data_source_dict).T
        .reset_index()
        .rename(columns={'index': 'Column Long Name',
                         0: 'Source',
                         1: 'Description'}))
    source_df = pd.merge(
        (pd.DataFrame(index=name_clean_dict, data=name_clean_dict.values())
         .reset_index()
         .rename(columns={'index': 'Column Name',
                          0: 'Column Long Name',
                          })),
        source_df
    )
    return source_df
def generate_source_df ( ) : logger . info ( 'Generating separate source dataframe' ) source_df = ( pd . DataFrame ( data_source_dict ) . T . reset_index ( ) . rename ( columns = { 'index' : 'Column Long Name' , 0 : 'Source' , 1 : 'Description' } ) ) source_df = pd . merge ( ( pd . DataFrame ( index = name_clean_dict , data = name_clean_dict . values ( ) ) . reset_index ( ) . rename ( columns = { 'index' : 'Column Name' , 0 : 'Column Long Name' , } ) ) , source_df ) return source_df
Create a DataFrame with column headers and their respective sources.
Create a DataFrame with column headers and their respective sources .
"""Create a DataFrame with column headers and their respective sources."""