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 0558e69 commit a41a081
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def create_contrat_de_travail(individus, period, salaire_type = 'imposable'):
# # si sp est nan un mois donnée, le mois est considéré comme non travaillé

individus['part_salariat_annee_connue'] = individus['nb_mois_salariat_annee'] / individus['mois_enquete']
individus['part_salariat_annee_connue'] = np.where(individus['part_salariat_annee_connue'] == 0,1,individus['part_salariat_annee_connue'])
individus['part_salariat_annee_connue'] = np.where(individus['part_salariat_annee_connue'] == 0, 1, individus['part_salariat_annee_connue'])
# s'il n'y a aucun mois travaillé dans l'année on met à 1 comme ça on ne l'utilise pas


Expand Down

0 comments on commit a41a081

Please sign in to comment.