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
Read the [Dataset User Guide](docs/dataset_user.md) for more information about accessing datasets.
39
+
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}/`
40
58
2. Create a new ETL script in `cfa/dataops/etl/{team_dir}/`
41
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/)
@@ -48,6 +66,7 @@ To add a new dataset:
48
66
## Accessing Datasets
49
67
50
68
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
+
51
70
- name: the name of the data source
52
71
- version: either 'latest' or string containing the datetime of required version. Default is 'latest'.
53
72
- type: either 'raw' or 'transformed'. Default is 'transformed'.
@@ -56,6 +75,7 @@ When the ETL pipelines are run, the data sources (raw and/or transformed) are st
56
75
The available datasets can be found by running `list_datasets()`, which can be found in the `cfa.dataops.catalog` submodule.
57
76
58
77
An example for getting the polars dataframes for the latest raw versions of the covid19vax_trends and seroprevalence datasets is below:
@@ -102,54 +126,30 @@ This repository was created for use by CDC programs to collaborate on public hea
102
126
103
127
### Public Domain Standard Notice
104
128
105
-
This repository constitutes a work of the United States Government and is not
106
-
subject to domestic copyright protection under 17 USC § 105. This repository is in
107
-
the public domain within the United States, and copyright and related rights in
108
-
the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/).
109
-
All contributions to this repository will be released under the CC0 dedication. By
110
-
submitting a pull request you are agreeing to comply with this waiver of
111
-
copyright interest.
129
+
This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the [CC0 1.0 Universal public domain dedication](https://creativecommons.org/publicdomain/zero/1.0/). All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.
112
130
113
131
### License Standard Notice
114
132
115
133
This repository is licensed under ASL v2 or later.
116
134
117
-
This source code in this repository is free: you can redistribute it and/or modify it under
118
-
the terms of the Apache Software License version 2, or (at your option) any
119
-
later version.
135
+
This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.
120
136
121
-
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY
122
-
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
123
-
PARTICULAR PURPOSE. See the Apache Software License for more details.
137
+
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.
124
138
125
-
You should have received a copy of the Apache Software License along with this
126
-
program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html
139
+
You should have received a copy of the Apache Software License along with this program. If not, see http://www.apache.org/licenses/LICENSE-2.0.html
127
140
128
141
The source code forked from other open source projects will inherit its license.
129
142
130
143
### Privacy Standard Notice
131
144
132
-
This repository contains only non-sensitive, publicly available data and
133
-
information. All material and community participation is covered by the
and [Code of Conduct](https://github.com/CDCgov/template/blob/master/code-of-conduct.md).
136
-
For more information about CDC's privacy policy, please visit [http://www.cdc.gov/other/privacy.html](https://www.cdc.gov/other/privacy.html).
145
+
This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the [Disclaimer](https://github.com/CDCgov/template/blob/master/DISCLAIMER.md) and [Code of Conduct](https://github.com/CDCgov/template/blob/master/code-of-conduct.md). For more information about CDC's privacy policy, please visit [http://www.cdc.gov/other/privacy.html](https://www.cdc.gov/other/privacy.html).
137
146
138
147
### Contributing Standard Notice
139
148
140
-
Anyone is encouraged to contribute to the repository by [forking](https://help.github.com/articles/fork-a-repo)
141
-
and submitting a pull request. (If you are new to GitHub, you might start with a
142
-
[basic tutorial](https://help.github.com/articles/set-up-git).) By contributing
143
-
to this project, you grant a world-wide, royalty-free, perpetual, irrevocable,
144
-
non-exclusive, transferable license to all users under the terms of the
145
-
[Apache Software License v2](http://www.apache.org/licenses/LICENSE-2.0.html) or
146
-
later.
149
+
Anyone is encouraged to contribute to the repository by [forking](https://help.github.com/articles/fork-a-repo) and submitting a pull request. (If you are new to GitHub, you might start with a [basic tutorial](https://help.github.com/articles/set-up-git).) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the [Apache Software License v2](http://www.apache.org/licenses/LICENSE-2.0.html) or later.
147
150
148
-
All comments, messages, pull requests, and other submissions received through
149
-
CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at [http://www.cdc.gov/other/privacy.html](http://www.cdc.gov/other/privacy.html).
151
+
All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at [http://www.cdc.gov/other/privacy.html](http://www.cdc.gov/other/privacy.html).
150
152
151
153
### Records Management Standard Notice
152
154
153
-
This repository is not a source of government records but is a copy to increase
154
-
collaboration and collaborative potential. All government records will be
155
-
published through the [CDC web site](http://www.cdc.gov).
155
+
This repository is not a source of government records but is a copy to increase collaboration and collaborative potential. All government records will be published through the [CDC web site](http://www.cdc.gov).
0 commit comments