Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh C40 data and enhance comparison for road transportation analysis #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified data/raw/C40_GPC_Database.xlsx
Binary file not shown.
304 changes: 281 additions & 23 deletions notebooks/II.1.1_C40_climateTRACE_comparison.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions notebooks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_c40_data():
columns = [
"City",
"locode",
"Year",
"Year_calendar",
"I.1.1",
"I.1.2",
"I.1.3",
Expand Down Expand Up @@ -95,7 +95,7 @@ def get_c40_data():
"VI.1",
]

return df_raw[columns].rename(columns={"City": "city", "Year": "year"})
return df_raw[columns].rename(columns={"City": "city", "Year_calendar": "year"})


def filter_out_notation_keys(df, cols):
Expand Down