-
Notifications
You must be signed in to change notification settings - Fork 0
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
465 imputation links #63
Conversation
df = df.query("{} in {}".format(date, selected_periods)) | ||
|
||
links_df = df.melt( | ||
id_vars=[date, sic, cell, question, imputed_value], |
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.
why imputed_value needs to be in index ?
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.
Am I right in thinking we are going to keep this in (following discussion on Teams)?
|
||
""" | ||
if selected_periods is not None: | ||
df = df.query("{} in {}".format(date, selected_periods)) |
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.
Loved line 110 beautiful approach !
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.
Luke's work 🙂
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.
Nice work, all looking good. I think we should change the function name and add some information in the docstrings too, after this happy to be merged.
Melting and mapping is used twice , it would be nice to have a function for this.
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.
All looking good, thanks for applying the changes :)
Summary
Merging counts onto main data and pivoting by link_type.
Summing imputation_value by period, cell and question.
Add your summary here - keep it brief, to the point, and in plain English.
Checklists
This pull request meets the following requirements:
If you feel some of these conditions do not apply for this pull request, please
add a comment to explain why.