-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ameliore builder erfs fpr #255
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
J'ai mis quelques changements de forme, mais le reste m'a l'air très correct.
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
openfisca_france_data/erfs_fpr/input_data_builder/step_03_variables_individuelles.py
Outdated
Show resolved
Hide resolved
@@ -599,7 +622,17 @@ def create_contrat_de_travail(individus, period, salaire_type = 'imposable'): | |||
), | |||
'contrat_de_travail' | |||
] = 1 | |||
|
|||
# on met à temps partiel les personnes qui se déclarent en temps plein au moment de l'enquète mais qui ont des périodes d'inactivité dans l'année | |||
temps_plein_to_switch = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uiliser un temre explicite en français, c'est mieux me semble-t-il.
# On vérfie que celles qu'on a créées jusqu'ici sont correctes | ||
assert (individus.query('salaire == 0').contrat_de_travail == 6).all() | ||
assert (individus.query('(contrat_de_travail == 1) & (salaire > 0)').heures_remunerees_volume < 35).all() | ||
# | ||
|
||
axes = (individus.query('(contrat_de_travail == 1) & (salaire > 0)').hhc).hist(bins=100) | ||
axes.set_title("Heures (hhc)") | ||
# individus.query('(contrat_de_travail == 1) & (salaire > 0)').hhc.isnull().sum() = 489 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On peut virer cette ligne
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
…ables_individuelles.py Co-authored-by: Mahdi Ben Jelloul <[email protected]>
New features
contrat_de_travail
etheures_remunerees_volumes
avec l'erfs_fprsp00
àsp12
qui décrivent le statut d'activité sur les douze derniers mois pour prendre en compte la part de travail connue dans l'année