-
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
Figure for Dave B #5
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.
Just issues with the functions that have conflict with the namka_plot branch
|
||
|
||
def validate_against_dispo_data(dispo_data, slot_df, day, month, year, slot_status): | ||
def validate_against_dispo_data(dispo_data, slot_df, day, month, year, slot_type): |
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.
Conflict with the namka_plot changes
if slot_type == 'show': | ||
slot_types = ['show', 'inpatient'] | ||
elif slot_type == 'no-show': | ||
slot_types = ['no-show'] |
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.
also has conflict with the Namka plot changes
else: | ||
print('invalid status') | ||
return | ||
selected_dispo_rows = dispo_data[(dispo_data['date'].dt.day == day) | ||
& (dispo_data['date'].dt.month == month) | ||
& (dispo_data['date'].dt.year == year) | ||
& (dispo_data['status'].isin(slot_statuses)) | ||
& (dispo_data['status'].isin(slot_types)) |
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.
same issue about slot_types
This PR is branched off of PR #4 "Distinguish no show types". Review and merge that one before reviewing this one.
Saving charts in altair is currently broken by a dependency issue (altair-viz/altair_saver#13). So, the
dave.py
command line script doesn't currently work. But I tested all of the code up toaltair_saver.save()
, and it works:A screenshot of resulting Figure is in the Paper Draft in Notion.