[ADD] add overview and correct population source#38
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
||
|
|
||
| def extract_n_countries(df_stat: pd.DataFrame): | ||
| return df_stat[df_stat["group_type"].isin(["country", "group"])]["group_name"].nunique() |
There was a problem hiding this comment.
Si tu comptes les pays, pourquoi tu n'utilises pas .isin(["country"])] à la place de .isin(["country", "group"])] ?
| list_overview.append(add_info(file_energy_intensity, "Intensité énergétique du PIB")) | ||
|
|
||
| # Greenhouse Gas Emissions | ||
| file_ghg = "../../server/data/GHG_EMISSIONS_ghg_full_by_gas_prod.csv" |
There was a problem hiding this comment.
Je pense que tu peux utiliser path_prod_data à cet endroit
| add_info(file_ghg, "Emissions de gaz à effet de serre (source FAO)", list_filter_apply=[("source", "FAO")])) | ||
|
|
||
| # CO2 emissions from fossil fuels | ||
| file_co2_emissions = "../../server/data/HISTORICAL_CO2_EMISSIONS_FROM_ENERGY_eia_with_zones_prod.csv" |
There was a problem hiding this comment.
Même remarque concernant l'utilisation de path_prod_data
| list_overview.append(add_info(file_co2_emissions, "Emissions historiques de CO2")) | ||
|
|
||
| # empreinte carbone | ||
| file_carbon_footprint = "../../server/data/CO2_CBA_PER_CAPITA_eora_cba_zones_per_capita_prod.csv" |
There was a problem hiding this comment.
Même remarque concernant l'utilisation de path_prod_data
| list_filter_apply=[("scope", "Territorial Emissions")])) | ||
|
|
||
| # imports / exports de CO2 | ||
| file_co2_import_export = "../../server/data/CO2_CONSUMPTION_BASED_ACCOUNTING_eora_co2_trade_by_country_prod.csv" |
There was a problem hiding this comment.
Même remarque concernant l'utilisation de path_prod_data
| ) | ||
|
|
||
| # Kaya Identity | ||
| file_kaya = "../../server/data/KAYA_kaya_base_100_prod.csv" |
There was a problem hiding this comment.
Même remarque concernant l'utilisation de path_prod_data
| "start_date": "2015", | ||
| "end_date": "2015", |
There was a problem hiding this comment.
Pourquoi les dates sont fixées à 2015 ?
| df_all_tracking = pd.concat([pd.DataFrame(el, index=[0]) for el in list_overview], axis=0) | ||
| df_all_tracking["file"] = df_all_tracking["file"].apply(lambda el: el.replace("_prod.csv", "")) |
No description provided.