-
Notifications
You must be signed in to change notification settings - Fork 112
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
US_BLS_Jolts data refresh #983
base: master
Are you sure you want to change the base?
Conversation
scripts/us_bls/jolts/bls_jolts.py
Outdated
jolts_df['Value'] = jolts_df['value'] | ||
|
||
return jolts_df, schema_mapping | ||
|
||
|
||
def remap_dcid(): |
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.
Pls add a block comment on what this function is doing.
Since it is only calling print(0 but not returning anything, is this just to print the mcf on console fro debugging or is the output redirected to a file?
scripts/us_bls/jolts/bls_jolts.py
Outdated
for f_key, f_value in mcf_config._mcf_map.items(): | ||
if f_key in line: | ||
if len(line) == len(f_key): |
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.
instead of a loop to check against each entry, can't we lookup the entry by key:
f_value = mcf_config._mcf_map.get(line)
if f_value:
line = f_value
scripts/us_bls/jolts/mcf_config.py
Outdated
@@ -0,0 +1,674 @@ | |||
_mcf_map = { |
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.
Since this is the same as map_config.py, can't we just have one of these dicts?
Having two identical dicts makes maintenance long term harder as these two will have to be kept in sync for edits.
IMPORTANT: If any new statistical variable comes in future , it must be added to the dictionaries :