Skip to content
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

102 share action charts #103

Draft
wants to merge 19 commits into
base: dev
Choose a base branch
from
Draft

102 share action charts #103

wants to merge 19 commits into from

Conversation

maxhrhadley
Copy link


Description

Hey Darren, apologies this is such a large PR - I branched off another branch that hasn't been merged yet so a lot of files here you don't need to look at. Files involved in making the charts are:

  • ahl_targets/pipeline/2024_update/simulation_npm.py : runs the NPM simulation model
  • ahl_targets/pipeline/2024_update/simulation_hfss.py : runs the HFSS simulation model
  • ahl_targets/analysis/share_action_plots/share_action_plots.py : creates the charts

Input data for flourish are df and hfss_df in the last python script (on S3 here: s3://ahl-private-data/in_home/processed/targets/share_action_custom_plots/). x axis is new_converted_npm and y axis can be created from the kg_w_new field (this is the total weight of product sold (kg) / sum(total weight of products sold). Depending on how you want to plot the graph, you could also use the total_kg field on the y-axis.

The simulation models aren't super well documented so please let me know if you have questions.

Fixes #102

@maxhrhadley maxhrhadley marked this pull request as draft December 23, 2024 16:41
how="left",
)

### FLAG: This step seems wrong to me - surely it should just be coefficient * 3 rather than coefficient * (npm_score - 3)??
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should have already deleted this comment (moment of confusion from me while working) - it should be coefficient * (npm_score - 3) as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make charts for share action
2 participants