Skip to content
Snippets Groups Projects
Commit 2efd51b0 authored by clallemand's avatar clallemand
Browse files

correction

parent 6cd82a26
No related branches found
No related tags found
1 merge request!16Corrections data 2024
Pipeline #21343 passed
......@@ -86,7 +86,9 @@ def ajuste_part_communes_canton(variables_openfisca_presentes_fichier, data, cod
data[part_population_canton] = data[part_population_canton].replace(DGCL_VALUE__NON_DISPONIBLE_BEFORE_2024, 0)
else:
data[part_population_canton] = data[part_population_canton].replace(DGCL_VALUE__NON_DISPONIBLE_2024, 0)
data[part_population_canton] = data[part_population_canton].astype(float) / 100
data[part_population_canton] = data[part_population_canton].astype(float)
if year >= 2023:
data[part_population_canton] = data[part_population_canton] / 100
logger.warning("Specific treatment applied to some communes: 57163 and 87116")
if data.loc[data[code_comm] == "57163", part_population_canton].values[0] >= 0.15:
data.loc[(data[code_comm] == "57163"), part_population_canton] -= 0.0001
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment