From ecc356332466b598eb6c154e87356838c4a31207 Mon Sep 17 00:00:00 2001 From: romainsacchi Date: Thu, 17 Mar 2022 10:18:15 +0000 Subject: [PATCH] Black reformating --- carculator_truck/hot_emissions.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/carculator_truck/hot_emissions.py b/carculator_truck/hot_emissions.py index 81d2509..5ca91fc 100644 --- a/carculator_truck/hot_emissions.py +++ b/carculator_truck/hot_emissions.py @@ -21,7 +21,12 @@ def get_emission_factors(): """ filepath = DATA_DIR / "hot_trucks.csv" - hot = pd.read_csv(filepath).groupby(["variable", "powertrain", "euro_class", "component"])["hot"].mean().to_xarray() + hot = ( + pd.read_csv(filepath) + .groupby(["variable", "powertrain", "euro_class", "component"])["hot"] + .mean() + .to_xarray() + ) return hot