-
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
Exports flattened output for erfs_fpr #177
Changes from 1 commit
b514e36
15ddc19
2d2b8f3
d87b648
e4e639c
92c74cc
b6a62ad
9ff37bc
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
|
||
@temporary_store_decorator(file_name = 'erfs_fpr') | ||
def create_input_data_frame(temporary_store = None, year = None): | ||
def create_input_data_frame(temporary_store = None, year = None,export_flattened_df=False): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. space after comma |
||
assert temporary_store is not None | ||
assert year is not None | ||
|
||
|
@@ -95,7 +95,11 @@ def create_input_data_frame(temporary_store = None, year = None): | |
) | ||
|
||
individus = format_ids_and_roles(individus) | ||
|
||
if export_flattened_df: | ||
supermerge=individus.merge(menages,right_index=True,left_on="idmen",suffixes=("","_x")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. space around |
||
print(len(individus),len(supermerge)) | ||
supermerge.to_hdf("dummy_data.h5",key="input") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "dummy_data.h5" should be an additional argument |
||
# Enters the individual table into the openfisca_erfs_fpr collection | ||
set_table_in_survey( | ||
individus, | ||
entity = "individu", | ||
|
@@ -104,6 +108,7 @@ def create_input_data_frame(temporary_store = None, year = None): | |
survey_name = 'input', | ||
) | ||
|
||
|
||
# assert 'f4ba' in data_frame.columns | ||
|
||
|
||
|
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.
space after comma