clarify units

This commit is contained in:
lisazeyen 2024-04-12 13:58:01 +02:00
parent 435350e07b
commit 4f8cc63461

View File

@ -395,13 +395,12 @@ def build_idees(countries):
names=["country", "year"],
)
# efficiency kgoe/100km -> ktoe/100km
totals.loc[:, "passenger car efficiency"] *= 1e3
# convert ktoe to TWh
exclude = totals.columns.str.fullmatch("passenger cars")
totals.loc[:, ~exclude] *= 11.63 / 1e3
# convert TWh/100km to kWh/km
totals.loc[:, "passenger car efficiency"] *= 10
return totals