You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-73Lines changed: 2 additions & 73 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,85 +39,14 @@ Read the [Dataset User Guide](docs/dataset_user.md) for more information about a
39
39
40
40
Read the [Dataset Developer Guide](docs/dataset_developer.md) for information about how to run ETL to add new versions of an existing datasets and about how to create new datasets.
1. Create a new TOML configuration file in `cfa/dataops/datasets/{team_dir}/`
58
-
2. Create a new ETL script in `cfa/dataops/etl/{team_dir}/`
59
-
3. Add SQL transformation templates in `cfa/dataops/etl/transform_templates/{team_dir}/` (is using SQL for transforms). These are [Mako templates](https://www.makotemplates.org/)
When the ETL pipelines are run, the data sources (raw and/or transformed) are stored into Azure Blob Storage. There will be times when we want to access these datasets directly. The function `get_data()` found in `cfa.dataops.datasets.catalog` helps retrieve that data, compile into a single dataframe, and return that dataframe. The parameters for `get_data()` are as follows:
69
-
70
-
- name: the name of the data source
71
-
- version: either 'latest' or string containing the datetime of required version. Default is 'latest'.
72
-
- type: either 'raw' or 'transformed'. Default is 'transformed'.
73
-
- output: the type of dataframe to output, either 'pandas' or 'polars'. Default is 'pandas'.
74
-
75
-
The available datasets can be found by running `list_datasets()`, which can be found in the `cfa.dataops.catalog` submodule.
76
-
77
-
An example for getting the polars dataframes for the latest raw versions of the covid19vax_trends and seroprevalence datasets is below:
0 commit comments