Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Here's a numpy example from a numpy tutorial on doing AQI #79

Merged
merged 2 commits into from
Mar 7, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions examples/numpy/air-quality-analysis/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Air Quality Analysis

This is taken from the numpy tutorial https://github.com/numpy/numpy-tutorials/tree/main/content.

# analysis_flow.py
Is where the analysis steps are defined as Hamilton functions.

Versus doing this analysis in a notebook, the strength of Hamilton here is in
forcing concise definitions and language around steps in the analysis -- and
then magically the analysis is pretty reusable / very easy to augment. E.g. add some
@config.when or split things into python modules to be swapped out, to extend the
analysis to new data sets, or new types of analyses.

# run_analysis.py
Is where the driver code lives to create the DAG and exercise it.

To exercise it:
> python run_analysis.py
Loading