Skip to content

Commit ee6cec9

Browse files
committed
Final touches
1 parent 933be09 commit ee6cec9

File tree

9 files changed

+81
-304
lines changed

9 files changed

+81
-304
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test:
2525
env/bin/pytest .
2626

2727
doc:
28+
env/bin/python docs/preprocess.py
2829
env/bin/sphinx-build -b html docs docs/_build
2930
env/bin/python -m webbrowser -t "docs/_build/index.html"
3031

docs/data/endpoints.csv

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Endpoint,Description
2+
pub_covid_hosp_facility,Fetch COVID hospitalization data for specific facilities.
3+
pub_covid_hosp_facility_lookup,Lookup COVID hospitalization facility identifiers.
4+
pub_covid_hosp_state_timeseries,Fetch COVID hospitalization data.
5+
pub_covidcast,Fetch Delphi's COVID-19 Surveillance Streams
6+
pub_covidcast_meta,Fetch COVIDcast surveillance stream metadata.
7+
pub_delphi,Fetch Delphi's forecast.
8+
pub_dengue_nowcast,Fetch Delphi's dengue nowcast.
9+
pub_ecdc_ili,Fetch ECDC ILI data.
10+
pub_flusurv,Fetch FluSurv data.
11+
pub_fluview,
12+
pub_fluview_clinical,Fetch FluView clinical data.
13+
pub_fluview_meta,
14+
pub_gft,Fetch Google Flu Trends data.
15+
pub_kcdc_ili,Fetch KCDC ILI data.
16+
pub_meta,Fetch API metadata.
17+
pub_nidss_dengue,Fetch NIDSS dengue data.
18+
pub_nidss_flu,Fetch NIDSS flu data.
19+
pub_nowcast,Fetch Delphi's wILI nowcast.
20+
pub_paho_dengue,Fetch PAHO Dengue data.
21+
pub_wiki,Fetch Wikipedia access data.
22+
pvt_cdc,Fetch CDC page hits.
23+
pvt_dengue_sensors,Fetch Delphi's digital surveillance sensors.
24+
pvt_ght,Fetch Google Health Trends data.
25+
pvt_meta_norostat,Fetch NoroSTAT metadata.
26+
pvt_norostat,"Fetch NoroSTAT data (point data, no min/max)."
27+
pvt_quidel,Fetch Quidel data.
28+
pvt_sensors,Fetch Delphi's digital surveillance sensors.
29+
pvt_twitter,Fetch HealthTweets data.

docs/getting_started.rst

Lines changed: 0 additions & 276 deletions
This file was deleted.

docs/getting_started_with_epidatpy.rst

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ it supports ``*``.)
112112
print(apicall)
113113
print(apicall.df().head())
114114

115-
We can fetch a subset of states by listing out the desired locations:
115+
Alternatively, we can fetch the full time series for a subset of states by
116+
listing out the desired locations in the ``geo_value`` argument and using
117+
``*`` in the ``time_values`` argument:
116118

117119
.. exec::
118120
:context: true
@@ -128,22 +130,6 @@ We can fetch a subset of states by listing out the desired locations:
128130
print(apicall)
129131
print(apicall.df().head())
130132

131-
We can also request data for a single location at a time, via the ``geo_values`` argument.
132-
133-
.. exec::
134-
:context: true
135-
136-
apicall = epidata.pub_covidcast(
137-
data_source = "fb-survey",
138-
signals = "smoothed_cli",
139-
geo_type = "state",
140-
time_type = "day",
141-
geo_values = "pa",
142-
time_values = EpiRange(20210405, 20210410))
143-
144-
print(apicall)
145-
print(apicall.df().head())
146-
147133
Getting versioned data
148134
----------------------
149135

@@ -234,3 +220,21 @@ the data stream that you are most interested in.
234220
The Epidata documentation lists all the data sources and signals available
235221
through the API for `COVID-19 <https://cmu-delphi.github.io/delphi-epidata/api/covidcast_signals.html>`_
236222
and for `other diseases <https://cmu-delphi.github.io/delphi-epidata/api/README.html#source-specific-parameters>`_.
223+
224+
Epiweeks and Dates
225+
------------------
226+
Epiweeks use the U.S. definition. That is, the first epiweek each year is the
227+
week, starting on a Sunday, containing January 4. See `this page
228+
<https://www.cmmcp.org/mosquito-surveillance-data/pages/epi-week-calendars-2008-2021>`_
229+
for more information.
230+
231+
Formatting for epiweeks is YYYYWW and for dates is YYYYMMDD.
232+
233+
Use individual values, comma-separated lists or, a hyphenated range of values to specify single or several dates.
234+
An ``EpiRange`` object can be also used to construct a range of epiweeks or dates. Examples include:
235+
236+
- ``param = 201530`` (A single epiweek)
237+
- ``param = '201401,201501,201601'`` (Several epiweeks)
238+
- ``param = '200501-200552'`` (A range of epiweeks)
239+
- ``param = '201440,201501-201510'`` (Several epiweeks, including a range)
240+
- ``param = EpiRange(20070101, 20071231)`` (A range of dates)

docs/images/Getting_Started.png

0 Bytes
Loading

docs/images/Versioned_Data.png

0 Bytes
Loading

docs/index.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ Contents
6666
.. toctree::
6767
:maxdepth: 2
6868

69-
getting_started
70-
7169
getting_started_with_epidatpy
7270

73-
epidatpy
74-
7571
signal_discovery
7672

7773
versioned_data
74+
75+
epidatpy

0 commit comments

Comments
 (0)