Skip to content

Commit

Permalink
Black reformating
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Mar 17, 2022
1 parent b1bfe8b commit ecc3563
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion carculator_truck/hot_emissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ecc3563

Please sign in to comment.