src/ei_mcoe/ei_mcoe.py
def add_pm_values(raw_eia_df, level):
    """Compile a DataFrame with level  index cols and adjusted pm2.5 values.

    Args:
        raw_eia_df (pandas.DataFrame): A DataFrame containing EIA data from the
            pudl_out.mcoe() function that has been run through the prep_raw_
            eia() function.
        level (str): An string indicating the level of desired aggregation.
            Either 'plant-fuel' or 'unit-fuel' are acceptable.
    Returns:
        pd.DataFrame: A DataFrame with an additional column for PM2.5 values
            calculated from GREET data and sorted by generation technology
            type and region.
    """
    logger.info(' - Adding pm values to the dataframe')
    tech_df = calc_tech_pct(raw_eia_df, level)
    pm_df = calc_pm_value(tech_df, level)
    return pm_df
Compile a DataFrame with level  index cols and adjusted pm2.5 values.

    Args:
        raw_eia_df (pandas.DataFrame): A DataFrame containing EIA data from the
            pudl_out.mcoe() function that has been run through the prep_raw_
            eia() function.
        level (str): An string indicating the level of desired aggregation.
            Either 'plant-fuel' or 'unit-fuel' are acceptable.
    Returns:
        pd.DataFrame: A DataFrame with an additional column for PM2.5 values
            calculated from GREET data and sorted by generation technology
            type and region.
    
Compile a DataFrame with level  index cols and adjusted pm2.5 values.
Compile a DataFrame with level index cols and adjusted pm2 . 5 values .
def add_pm_values(raw_eia_df, level):
    logger.info(' - Adding pm values to the dataframe')
    tech_df = calc_tech_pct(raw_eia_df, level)
    pm_df = calc_pm_value(tech_df, level)
    return pm_df
def add_pm_values ( raw_eia_df , level ) : logger . info ( ' - Adding pm values to the dataframe' ) tech_df = calc_tech_pct ( raw_eia_df , level ) pm_df = calc_pm_value ( tech_df , level ) return pm_df
Compile a DataFrame with level  index cols and adjusted pm2.5 values.
Compile a DataFrame with level index cols and adjusted pm2 . 5 values .
"""Compile a DataFrame with level  index cols and adjusted pm2.5 values.

    Args:
        raw_eia_df (pandas.DataFrame): A DataFrame containing EIA data from the
            pudl_out.mcoe() function that has been run through the prep_raw_
            eia() function.
        level (str): An string indicating the level of desired aggregation.
            Either 'plant-fuel' or 'unit-fuel' are acceptable.
    Returns:
        pd.DataFrame: A DataFrame with an additional column for PM2.5 values
            calculated from GREET data and sorted by generation technology
            type and region.
    """
A DataFrame with an additional column for PM2.5 values
calculated from GREET data and sorted by generation technology
type and region.
A DataFrame with an additional column for PM2 . 5 values calculated from GREET data and sorted by generation technology type and region .
pd.DataFrame
raw_eia_df
A DataFrame containing EIA data from the
pudl_out.mcoe() function that has been run through the prep_raw_
eia() function.
A DataFrame containing EIA data from the pudl_out . mcoe () function that has been run through the prep_raw_ eia () function .
level
An string indicating the level of desired aggregation.
Either 'plant-fuel' or 'unit-fuel' are acceptable.
An string indicating the level of desired aggregation . Either ' plant - fuel ' or ' unit - fuel ' are acceptable .