src/ei_mcoe/ei_mcoe.py
def calc_fixed_var_breakdown(eia_ferc1_merge_df):
    """Calculate and create columns for the fixed and variable costs.

    This function uses variable cost data from the NEMS EMM report to calculate
    fixed cost. The variable cost is added at the generator level in prep_raw_
    eia().

    Args:
        eia_ferc1_merge_df (pandas.DataFrame): A DataFrame with FERC Form 1 and
            EIA values merged. Should contain column for variable cost,
            calculated in the prep_raw_eia() function.

    Returns:
        pandas.DataFrame: A DataFrame with columns for fixed and variable
            cost where data is available.
    """
    eia_ferc1_merge_df['fixed_cost'] = (
        eia_ferc1_merge_df['fix_var_om']
        - eia_ferc1_merge_df['variable_cost'])
    return eia_ferc1_merge_df
Calculate and create columns for the fixed and variable costs.

    This function uses variable cost data from the NEMS EMM report to calculate
    fixed cost. The variable cost is added at the generator level in prep_raw_
    eia().

    Args:
        eia_ferc1_merge_df (pandas.DataFrame): A DataFrame with FERC Form 1 and
            EIA values merged. Should contain column for variable cost,
            calculated in the prep_raw_eia() function.

    Returns:
        pandas.DataFrame: A DataFrame with columns for fixed and variable
            cost where data is available.
    
Calculate and create columns for the fixed and variable costs.
This function uses variable cost data from the NEMS EMM report to calculate
fixed cost. The variable cost is added at the generator level in prep_raw_
eia().
Calculate and create columns for the fixed and variable costs . This function uses variable cost data from the NEMS EMM report to calculate fixed cost . The variable cost is added at the generator level in prep_raw_ eia () .
def calc_fixed_var_breakdown(eia_ferc1_merge_df):
    eia_ferc1_merge_df['fixed_cost'] = (
        eia_ferc1_merge_df['fix_var_om']
        - eia_ferc1_merge_df['variable_cost'])
    return eia_ferc1_merge_df
def calc_fixed_var_breakdown ( eia_ferc1_merge_df ) : eia_ferc1_merge_df [ 'fixed_cost' ] = ( eia_ferc1_merge_df [ 'fix_var_om' ] - eia_ferc1_merge_df [ 'variable_cost' ] ) return eia_ferc1_merge_df
Calculate and create columns for the fixed and variable costs.
Calculate and create columns for the fixed and variable costs .
"""Calculate and create columns for the fixed and variable costs.

    This function uses variable cost data from the NEMS EMM report to calculate
    fixed cost. The variable cost is added at the generator level in prep_raw_
    eia().

    Args:
        eia_ferc1_merge_df (pandas.DataFrame): A DataFrame with FERC Form 1 and
            EIA values merged. Should contain column for variable cost,
            calculated in the prep_raw_eia() function.

    Returns:
        pandas.DataFrame: A DataFrame with columns for fixed and variable
            cost where data is available.
    """
A DataFrame with columns for fixed and variable
cost where data is available.
A DataFrame with columns for fixed and variable cost where data is available .
pandas.DataFrame
eia_ferc1_merge_df
A DataFrame with FERC Form 1 and
EIA values merged. Should contain column for variable cost,
calculated in the prep_raw_eia() function.
A DataFrame with FERC Form 1 and EIA values merged . Should contain column for variable cost calculated in the prep_raw_eia () function .