src/ei_mcoe/ei_mcoe.py
def add_nems(eia_ferc1_merge_df, pudl_out):
    """Incorporate NEMS aeo2020 data to account for missing FERC O&M costs.

    Args:
        eia_ferc1_merge_df (pandas.DataFrame): A DataFrame containing mcoe
            factors from FERC Form 1 and EIA. Pre-mcoe calculation.

    Returns:
        pandas.DataFrame: A DataFrame with NEMS values added to account for
            missing FERC Form 1 O&M costs.
    """
    logger.info(' - Adding NEMS cost data')
    nems_merge_df = (
        pd.merge(eia_ferc1_merge_df, prep_nems(pudl_out),
                 on=input_dict['merge_cols_nems'], how='left',
                 suffixes=("", "_nems"))
    )
    logger.info('checking nems inside add_nems')
    check_nems_records(nems_merge_df, pudl_out)
    return nems_merge_df
Incorporate NEMS aeo2020 data to account for missing FERC O&M costs.

    Args:
        eia_ferc1_merge_df (pandas.DataFrame): A DataFrame containing mcoe
            factors from FERC Form 1 and EIA. Pre-mcoe calculation.

    Returns:
        pandas.DataFrame: A DataFrame with NEMS values added to account for
            missing FERC Form 1 O&M costs.
    
Incorporate NEMS aeo2020 data to account for missing FERC O&M costs.
Incorporate NEMS aeo2020 data to account for missing FERC O&M costs .
def add_nems(eia_ferc1_merge_df, pudl_out):
    logger.info(' - Adding NEMS cost data')
    nems_merge_df = (
        pd.merge(eia_ferc1_merge_df, prep_nems(pudl_out),
                 on=input_dict['merge_cols_nems'], how='left',
                 suffixes=("", "_nems"))
    )
    logger.info('checking nems inside add_nems')
    check_nems_records(nems_merge_df, pudl_out)
    return nems_merge_df
def add_nems ( eia_ferc1_merge_df , pudl_out ) : logger . info ( ' - Adding NEMS cost data' ) nems_merge_df = ( pd . merge ( eia_ferc1_merge_df , prep_nems ( pudl_out ) , on = input_dict [ 'merge_cols_nems' ] , how = 'left' , suffixes = ( "" , "_nems" ) ) ) logger . info ( 'checking nems inside add_nems' ) check_nems_records ( nems_merge_df , pudl_out ) return nems_merge_df
Incorporate NEMS aeo2020 data to account for missing FERC O&M costs.
Incorporate NEMS aeo2020 data to account for missing FERC O&M costs .
"""Incorporate NEMS aeo2020 data to account for missing FERC O&M costs.

    Args:
        eia_ferc1_merge_df (pandas.DataFrame): A DataFrame containing mcoe
            factors from FERC Form 1 and EIA. Pre-mcoe calculation.

    Returns:
        pandas.DataFrame: A DataFrame with NEMS values added to account for
            missing FERC Form 1 O&M costs.
    """
A DataFrame with NEMS values added to account for
missing FERC Form 1 O&M costs.
A DataFrame with NEMS values added to account for missing FERC Form 1 O&M costs .
pandas.DataFrame
eia_ferc1_merge_df
A DataFrame containing mcoe
factors from FERC Form 1 and EIA. Pre-mcoe calculation.
A DataFrame containing mcoe factors from FERC Form 1 and EIA . Pre - mcoe calculation .
pudl_out