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

Add LA Store and HealthNut Customer persona #112

Merged
merged 6 commits into from
Apr 8, 2024
Merged

Conversation

gwenwindflower
Copy link
Contributor

@gwenwindflower gwenwindflower commented Apr 8, 2024

This PR does some minor refactoring, notably around the saving CSVs logic to use list comprehensions over generators to evaluate to a list of dicts and the pd.from_records method over pd.from_dict which expects a list of dictionaries. The old way worked but made linters unhappy. There are now no more warnings from the linter with basic type checking on. (I expect there are lots of warnings if you switch to strict, but I've implemented a bit more typing).

It also adds a test to ensure that order totals do indeed equal subtotal + tax_paid, there were some issues with this and rounding in the data before when building on this data in dbt. This should ensure that the source data is not the problem.

It also makes Customer into an ABC, which it is.

It also fixes #111

Lastly it adds a HealthNut persona who primarily buys beverages on summer mornings and an LA location.

@gwenwindflower gwenwindflower changed the title Add LA and HealthNut store and persona Add LA Store and HealthNut Customer persona Apr 8, 2024
@gwenwindflower gwenwindflower merged commit 3ea1786 into main Apr 8, 2024
8 checks passed
@gwenwindflower gwenwindflower deleted the feat/refactor branch April 27, 2024 22:49
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.

raw_products.csv missing in latest release
1 participant