Skip to content

Commit

Permalink
Update openfisca_france_data/erfs_fpr/input_data_builder/step_03_vari…
Browse files Browse the repository at this point in the history
…ables_individuelles.py

Co-authored-by: Mahdi Ben Jelloul <[email protected]>
  • Loading branch information
clallemand and benjello authored Apr 24, 2024
1 parent fbad462 commit 0240db3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def create_contrat_de_travail(individus, period, salaire_type = 'imposable'):
# # on ne prend que les mois de l'année en cours donc on n'a pas le même nombre de mois connus selon le mois de l'enquête

individus['nb_mois_salariat_annee'] = 0
for i in ["00","01","02","03","04","05","06","07","08","09","10","11"]:
for i in ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"]:
individus['nb_mois_salariat_annee'] = individus.nb_mois_salariat_annee + np.where(int(i) < individus['mois_enquete'],np.where((individus[f"sp{i}"] == 1),1,0),0)
individus['nb_mois_salariat_annee'] = individus.nb_mois_salariat_annee + np.where(int(i) < individus['mois_enquete'],np.where((individus[f"sp{i}"] == 2),1,0),0)

Expand Down

0 comments on commit 0240db3

Please sign in to comment.