Closed benoit-cty closed 1 year ago
There is an error in get_cloud_emissions when we find multiple line in the dataframe:
get_cloud_emissions
emissions_per_kWh: EmissionsPerKWh = EmissionsPerKWh.from_g_per_kWh( df.loc[(df["provider"] == cloud.provider) & (df["region"] == cloud.region)][ "impact" ].item() )
We need to check the duplicated lines in the file.
See https://github.com/mlco2/codecarbon/actions/runs/4965711560/jobs/8886700337#step:5:747
Closed by https://github.com/mlco2/codecarbon/pull/407
Description
There is an error in
get_cloud_emissions
when we find multiple line in the dataframe:We need to check the duplicated lines in the file.
See https://github.com/mlco2/codecarbon/actions/runs/4965711560/jobs/8886700337#step:5:747