@@ -4,156 +4,143 @@ Getting Started
44Overview
55--------------
66
7- This package provides access to data from various Epidata API endpoints including COVIDcast,
8- which provides numerous COVID-related data streams, updated daily.
7+ This package provides access to data from various Epidata API endpoints including COVIDcast,
8+ which provides numerous COVID-related data streams, updated daily.
99
1010.. _epidata-endpoints :
1111
1212Epidata Data Sources
13- --------------
13+ --------------------
1414The parameters available for each source data are documented in each linked source-specific API page.
1515
16- |
1716**COVID-19 Data **
1817
19- .. list-table ::
18+ .. list-table ::
2019 :widths: 20 20 40
2120 :header-rows: 1
2221
2322 * - Endpoint
2423 - Name
2524 - Description
26- * - `covidcast <https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html >`_
25+ * - `pub_covidcast <https://cmu-delphi.github.io/delphi-epidata/api/covidcast.html >`_
2726 - COVIDcast
2827 - Delphi’s COVID-19 surveillance streams.
29- * - `covidcast_meta <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_meta.html >`_
28+ * - `pub_covidcast_meta <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_meta.html >`_
3029 - COVIDcast metadata
3130 - Metadata for Delphi's COVID-19 surveillance streams.
32- * - `covid_hosp_facility <https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp_facility.html >`_
31+ * - `pub_covid_hosp_facility <https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp_facility.html >`_
3332 - COVID-19 Hospitalization by Facility
3433 - COVID-19 Reported Patient Impact and Hospital Capacity - Facility Lookup
35- * - `covid_hosp <https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp.html >`_
34+ * - `pub_covid_hosp <https://cmu-delphi.github.io/delphi-epidata/api/covid_hosp.html >`_
3635 - COVID-19 Hospitalization
3736 - COVID-19 Reported Patient Impact and Hospital Capacity.
3837
39- |
4038**Influenza Data **
4139
42- .. list-table ::
40+ .. list-table ::
4341 :widths: 20 20 40
4442 :header-rows: 1
4543
4644 * - Endpoint
4745 - Name
4846 - Description
49- * - `afhsb <https://cmu-delphi.github.io/delphi-epidata/api/afhsb.html >`_
50- - AFHSB
51- - ...
52- * - `meta_afhsb <https://cmu-delphi.github.io/delphi-epidata/api/meta_afhsb.html >`_
53- - AFHSB Metadata
54- - ...
55- * - `cdc <https://cmu-delphi.github.io/delphi-epidata/api/cdc.html >`_
56- - CDC Page Hits
47+ * - `pvt_cdc <https://cmu-delphi.github.io/delphi-epidata/api/cdc.html >`_
48+ - CDC Page Hits
5749 - ...
58- * - `delphi <https://cmu-delphi.github.io/delphi-epidata/api/delphi.html >`_
59- - Delphi’s Forecast
50+ * - `pub_delphi <https://cmu-delphi.github.io/delphi-epidata/api/delphi.html >`_
51+ - Delphi’s Forecast
6052 - ...
61- * - `ecdc_ili <https://cmu-delphi.github.io/delphi-epidata/api/ecdc_ili.html >`_
53+ * - `pub_ecdc_ili <https://cmu-delphi.github.io/delphi-epidata/api/ecdc_ili.html >`_
6254 - ECDC ILI
6355 - ECDC ILI data from the ECDC website.
64- * - `flusurv <https://cmu-delphi.github.io/delphi-epidata/api/flusurv.html >`_
65- - FluSurv
56+ * - `pub_flusurv <https://cmu-delphi.github.io/delphi-epidata/api/flusurv.html >`_
57+ - FluSurv
6658 - FluSurv-NET data (flu hospitaliation rates) from CDC.
67- * - `fluview <https://cmu-delphi.github.io/delphi-epidata/api/fluview.html >`_
59+ * - `pub_fluview <https://cmu-delphi.github.io/delphi-epidata/api/fluview.html >`_
6860 - FluView
6961 - Influenza-like illness (ILI) from U.S. Outpatient Influenza-like Illness Surveillance Network (ILINet).
70- * - `fluview_meta <https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html >`_
62+ * - `pub_fluview_meta <https://cmu-delphi.github.io/delphi-epidata/api/fluview_meta.html >`_
7163 - FluView Metadata
7264 - Summary data about ``fluview ``.
73- * - `fluview_clinical <https://cmu-delphi.github.io/delphi-epidata/api/fluview_clinical.html >`_
65+ * - `pub_fluview_clinical <https://cmu-delphi.github.io/delphi-epidata/api/fluview_clinical.html >`_
7466 - FluView Clinical
7567 - ...
76- * - `gft <https://cmu-delphi.github.io/delphi-epidata/api/gft.html >`_
68+ * - `pub_gft <https://cmu-delphi.github.io/delphi-epidata/api/gft.html >`_
7769 - Google Flu Trends
7870 - Estimate of influenza activity based on volume of certain search queries. This is now a static endpoint due to discontinuation.
79- * - `ght <https://cmu-delphi.github.io/delphi-epidata/api/ght.html >`_
80- - Google Health Trends
81- - Estimate of influenza activity based on volume of certain search queries.
82- * - `kcdc_ili <https://cmu-delphi.github.io/delphi-epidata/api/kcdc_ili.html >`_
71+ * - `pub_kcdc_ili <https://cmu-delphi.github.io/delphi-epidata/api/kcdc_ili.html >`_
8372 - KCDC ILI
8473 - KCDC ILI data from KCDC website.
85- * - `meta <https://cmu-delphi.github.io/delphi-epidata/api/meta.html >`_
74+ * - `pub_meta <https://cmu-delphi.github.io/delphi-epidata/api/meta.html >`_
8675 - API Metadata
8776 - Metadata for ``fluview ``, ``twitter ``, ``wiki ``, and ``delphi ``.
88- * - `nidss_flu <https://cmu-delphi.github.io/delphi-epidata/api/nidss_flu.html >`_
77+ * - `pub_nidss_flu <https://cmu-delphi.github.io/delphi-epidata/api/nidss_flu.html >`_
8978 - NIDSS Flu
9079 - Outpatient ILI from Taiwan's National Infectious Disease Statistics System (NIDSS).
91- * - `nowcast <https://cmu-delphi.github.io/delphi-epidata/api/nowcast.html >`_
80+ * - `pub_nowcast <https://cmu-delphi.github.io/delphi-epidata/api/nowcast.html >`_
9281 - ILI Nearby
9382 - A nowcast of U.S. national, regional, and state-level (weighted) percent ILI, available seven days (regionally) or five days (state-level) before the first ILINet report for the corresponding week.
94- * - `quidel <https://cmu-delphi.github.io/delphi-epidata/api/quidel.html >`_
83+ * - `pvt_quidel <https://cmu-delphi.github.io/delphi-epidata/api/quidel.html >`_
9584 - Quidel
9685 - Data provided by Quidel Corp., which contains flu lab test results.
97- * - `sensors <https://cmu-delphi.github.io/delphi-epidata/api/sensors.html >`_
86+ * - `pvt_sensors <https://cmu-delphi.github.io/delphi-epidata/api/sensors.html >`_
9887 - Delphi's Digital Surveillance Sensors
9988 - ...
100- * - `twitter <https://cmu-delphi.github.io/delphi-epidata/api/twitter.html >`_
89+ * - `pvt_twitter <https://cmu-delphi.github.io/delphi-epidata/api/twitter.html >`_
10190 - Twitter Stream
10291 - Estimate of influenza activity based on analysis of language used in tweets from HealthTweets.
103- * - `wiki <https://cmu-delphi.github.io/delphi-epidata/api/wiki.html >`_
92+ * - `pub_wiki <https://cmu-delphi.github.io/delphi-epidata/api/wiki.html >`_
10493 - Wikipedia Access Logs
10594 - Number of page visits for selected English, Influenza-related wikipedia articles.
106- |
10795
10896**Dengue Data **
10997
110- .. list-table ::
98+ .. list-table ::
11199 :widths: 20 20 40
112100 :header-rows: 1
113101
114102 * - Endpoint
115103 - Name
116104 - Description
117- * - `dengue_nowcast <https://cmu-delphi.github.io/delphi-epidata/api/dengue_nowcast.html >`_
105+ * - `pub_dengue_nowcast <https://cmu-delphi.github.io/delphi-epidata/api/dengue_nowcast.html >`_
118106 - Delphi's Dengue Nowcast
119107 - ...
120- * - `dengue_sensors <https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html >`_
108+ * - `pvt_dengue_sensors <https://cmu-delphi.github.io/delphi-epidata/api/dengue_sensors.html >`_
121109 - Delphi’s Dengue Digital Surveillance Sensors
122110 - ...
123- * - `nidss_dengue <https://cmu-delphi.github.io/delphi-epidata/api/nidss_dengue.html >`_
111+ * - `pub_nidss_dengue <https://cmu-delphi.github.io/delphi-epidata/api/nidss_dengue.html >`_
124112 - NIDSS Dengue
125113 - Counts of confirmed dengue cases from Taiwan's NIDSS.
126- * - `paho_dengue <https://cmu-delphi.github.io/delphi-epidata/api/paho_dengue.html >`_
114+ * - `pub_paho_dengue <https://cmu-delphi.github.io/delphi-epidata/api/paho_dengue.html >`_
127115 - PAHO Dengue
128116 - ...
129- |
130117
131118**Norovirus Data **
132119
133- .. list-table ::
120+ .. list-table ::
134121 :widths: 20 20 40
135122 :header-rows: 1
136123
137124 * - Endpoint
138125 - Name
139126 - Description
140- * - `meta_norostat <https://cmu-delphi.github.io/delphi-epidata/api/meta_norostat.html >`_
127+ * - `pvt_meta_norostat <https://cmu-delphi.github.io/delphi-epidata/api/meta_norostat.html >`_
141128 - NoroSTAT Metadata
142129 - ...
143- * - `norostat <https://cmu-delphi.github.io/delphi-epidata/api/norostat.html >`_
130+ * - `pvt_norostat <https://cmu-delphi.github.io/delphi-epidata/api/norostat.html >`_
144131 - NoroSTAT
145132 - Suspected and confirmed norovirus outbreaks reported by state health departments to the CDC.
146133
147- |
148-
149134Epiweeks and Dates
150135------------------
151- Epiweeks use the U.S. definition. That is, the first epiweek each year is the week, starting on a Sunday,
152- containing January 4. See `this page <https://www.cmmcp.org/mosquito-surveillance-data/pages/epi-week-calendars-2008-2021 >`_ for more information.
136+ Epiweeks use the U.S. definition. That is, the first epiweek each year is the
137+ week, starting on a Sunday, containing January 4. See `this page
138+ <https://www.cmmcp.org/mosquito-surveillance-data/pages/epi-week-calendars-2008-2021> `_
139+ for more information.
153140
154141Formatting for epiweeks is YYYYWW and for dates is YYYYMMDD.
155142
156- Use individual values, comma-separated lists or, a hyphenated range of values to specify single or several dates.
143+ Use individual values, comma-separated lists or, a hyphenated range of values to specify single or several dates.
157144An ``EpiRange `` object can be also used to construct a range of epiweeks or dates. Examples include:
158145
159146- ``param = 201530 `` (A single epiweek)
@@ -162,8 +149,6 @@ An ``EpiRange`` object can be also used to construct a range of epiweeks or date
162149- ``param = '201440,201501-201510' `` (Several epiweeks, including a range)
163150- ``param = EpiRange(20070101, 20071231) `` (A range of dates)
164151
165- |
166-
167152.. _getting-started :
168153
169154Basic examples
@@ -176,8 +161,8 @@ distributed through Facebook, for every county in the United States between
1761612020-05-01 and 2020-05-07:
177162
178163>>> from epidatpy.request import Epidata, EpiRange
179- >>> apicall = Epidata.covidcast(" fb-survey" , " smoothed_cli" ,
180- ... " day" , " county" ,
164+ >>> apicall = Epidata.covidcast(" fb-survey" , " smoothed_cli" ,
165+ ... " day" , " county" ,
181166... EpiRange(20200501 , 20200507 ), " *" )
182167>>> data = apicall.df()
183168>>> data.head()
@@ -197,7 +182,7 @@ May 1st were updated on September 3rd based on new data, giving a ``lag`` of 125
197182See the :py:func: `epidatpy.request.Epidata.covidcast ` documentation for further details on the returned
198183columns.
199184
200- In the above code, the ``.df() `` function on the ``apicall `` variable generated a Pandas DataFrame. We can use
185+ In the above code, the ``.df() `` function on the ``apicall `` variable generated a Pandas DataFrame. We can use
201186other :ref: `output functions <output-data >` to parse the requested API call in different formats. To parse the data
202187into JSON format, we can use the following command:
203188
@@ -238,7 +223,7 @@ into JSON format, we can use the following command:
238223 .
239224 }]
240225
241- Note that all of the :ref: `output functions <output-data >` have a ``field `` parameter which takes in any form of iterator objects
226+ Note that all of the :ref: `output functions <output-data >` have a ``field `` parameter which takes in any form of iterator objects
242227to enable fetching the data with customization (e.g. specifying which fields or columns to output). Similar to the previous example,
243228to parse the data in JSON format, but customize the field to show only ``geo_value `` and ``value ``, we would use the following
244229command:
@@ -259,18 +244,13 @@ command:
259244 .
260245 }]
261246
262-
263- |
264-
265247**Wikipedia Access article "influenza" on 2020w01 **
266248
267249>>> apicall_wiki = Epidata.wiki(articles = ' influenza' , epiweeks = ' 202001' )
268250>>> data = apicall_wiki.json()
269251>>> print (data)
270252[{'article': 'influenza', 'count': 6516, 'total': 663604044, 'hour': -1, 'epiweek': datetime.date(2019, 12, 29), 'value': 9.81910834}]
271253
272- |
273-
274254**FluView on 2019w01 (national) **
275255
276256>>> apicall_fluview = Epidata.fluview(regions = ' nat' , epiweeks = ' 201901' )
@@ -294,10 +274,3 @@ command:
294274 'ili': 3.63095}],
295275 'result': 1,
296276 'message': 'success'}
297-
298- |
299-
300- Other examples (TODO)
301- --------------
302-
303- (TODO)
0 commit comments