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
1. Create a new TOML configuration file in `cfa/dataops/datasets/{team_dir}/`
40
-
2. Create a new ETL script in `cfa/dataops/etl/{team_dir}/`
41
-
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:
51
-
- name: the name of the data source
52
-
- version: either 'latest' or string containing the datetime of required version. Default is 'latest'.
53
-
- type: either 'raw' or 'transformed'. Default is 'transformed'.
54
-
- output: the type of dataframe to output, either 'pandas' or 'polars'. Default is 'pandas'.
55
-
56
-
The available datasets can be found by running `list_datasets()`, which can be found in the `cfa.dataops.catalog` submodule.
57
-
58
-
An example for getting the polars dataframes for the latest raw versions of the covid19vax_trends and seroprevalence datasets is below:
Read the [Dataset User Guide](docs/dataset_user.md) for more information about accessing datasets.
89
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.
- Ryan Raasch <xng3@cdc.gov> (CDC/OD/ORR/CFA)(CTR)
96
47
48
+
---
49
+
97
50
## Disclaimers
98
51
99
52
### General Disclaimer
@@ -102,54 +55,30 @@ This repository was created for use by CDC programs to collaborate on public hea
102
55
103
56
### Public Domain Standard Notice
104
57
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.
58
+
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
59
113
60
### License Standard Notice
114
61
115
62
This repository is licensed under ASL v2 or later.
116
63
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.
64
+
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
65
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.
66
+
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
67
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
68
+
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
69
128
70
The source code forked from other open source projects will inherit its license.
129
71
130
72
### Privacy Standard Notice
131
73
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).
74
+
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
75
138
76
### Contributing Standard Notice
139
77
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.
78
+
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
79
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).
80
+
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
81
151
82
### Records Management Standard Notice
152
83
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).
84
+
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