Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/n/i/nilmtk-HEAD/nilmtk/stats/electricity/building.py   nilmtk(Download)
    totals_per_appliance = {}
    for name, df in electricity.appliances.iteritems():
        totals_per_appliance[name] = single.energy(df, unit=unit)
 
    return total_mains_energy, pd.Series(totals_per_appliance)
def get_total_energy_per_dict(electricity, dict_='mains',  unit='kwh'):
    total_energy = 0.0
    for df in electricity.__dict__[dict_].values():
        energy_for_df = single.energy(df, unit)
        total_energy += energy_for_df