def convert_power_to_energy(power_col, sample_rate_min="10T"):
    """
    Compute energy [kWh] from power [kw] and return the data column

    Args:
        df(:obj:`pandas.DataFrame`): the existing data frame to append to
        col(:obj:`string`): Power column to use if not power_kw
        sample_rate_min(:obj:`float`): Sampling rate in minutes to use for conversion, if not ten minutes

    Returns:
        :obj:`pandas.Series`: Energy in kWh that matches the length of the input data frame 'df'

    """
    time_conversion = {"1T": 1.0, "5T": 5.0, "10T": 10.0, "30T": 30.0, "1H": 60.0}
    energy_kwh = power_col * time_conversion[sample_rate_min] / 60.0
    return energy_kwh