Skip to content

[ADD] add overview and correct population source#38

Open
tvienne wants to merge 1 commit into
mainfrom
add-overview
Open

[ADD] add overview and correct population source#38
tvienne wants to merge 1 commit into
mainfrom
add-overview

Conversation

@tvienne
Copy link
Copy Markdown
Collaborator

@tvienne tvienne commented Mar 26, 2025

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
front ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 26, 2025 11:34am



def extract_n_countries(df_stat: pd.DataFrame):
return df_stat[df_stat["group_type"].isin(["country", "group"])]["group_name"].nunique()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Même remarque concernant l'utilisation de path_prod_data

)

# Kaya Identity
file_kaya = "../../server/data/KAYA_kaya_base_100_prod.csv"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Même remarque concernant l'utilisation de path_prod_data

Comment on lines +149 to +150
"start_date": "2015",
"end_date": "2015",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pourquoi les dates sont fixées à 2015 ?

Comment on lines +160 to +161
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", ""))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

el signifie element ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants