Skip to content

Commit

Permalink
update documentation with Sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
lisphilar committed Oct 10, 2022
1 parent c40c986 commit 7fa13f0
Show file tree
Hide file tree
Showing 24 changed files with 1,965 additions and 1,982 deletions.
116 changes: 58 additions & 58 deletions docs/01_data_preparation.html
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,11 @@ <h3>1-1. With <code class="docutils literal notranslate"><span class="pre">DataE
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
2022-10-10 at 08:17:50 | INFO | Retrieving COVID-19 dataset from https://github.com/lisphilar/covid19-sir/data/
2022-10-10 at 08:17:50 | INFO | Retrieving datasets from COVID-19 Data Hub https://covid19datahub.io/
2022-10-10 at 08:17:58 | INFO | Retrieving datasets from Our World In Data https://github.com/owid/covid-19-data/
2022-10-10 at 08:18:00 | INFO | Retrieving datasets from Our World In Data https://github.com/owid/covid-19-data/
2022-10-10 at 08:18:00 | INFO | Retrieving datasets from Our World In Data https://github.com/owid/covid-19-data/
2022-10-10 at 08:54:45 | INFO | Retrieving COVID-19 dataset from https://github.com/lisphilar/covid19-sir/data/
2022-10-10 at 08:54:45 | INFO | Retrieving datasets from COVID-19 Data Hub https://covid19datahub.io/
2022-10-10 at 08:54:54 | INFO | Retrieving datasets from Our World In Data https://github.com/owid/covid-19-data/
2022-10-10 at 08:54:56 | INFO | Retrieving datasets from Our World In Data https://github.com/owid/covid-19-data/
2022-10-10 at 08:54:56 | INFO | Retrieving datasets from Our World In Data https://github.com/owid/covid-19-data/
</pre></div></div>
</div>
<div class="nboutput nblast docutils container">
Expand All @@ -533,7 +533,7 @@ <h3>1-1. With <code class="docutils literal notranslate"><span class="pre">DataE
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
&lt;covsirphy.engineering.engineer.DataEngineer at 0x7f0af2c26d60&gt;
&lt;covsirphy.engineering.engineer.DataEngineer at 0x7fe409795df0&gt;
</pre></div></div>
</div>
<p>We can get the all downloaded records as a <code class="docutils literal notranslate"><span class="pre">pandas.DataFrame</span></code> with <code class="docutils literal notranslate"><span class="pre">DataEngineer().all()</span></code> method.</p>
Expand All @@ -553,37 +553,37 @@ <h3>1-1. With <code class="docutils literal notranslate"><span class="pre">DataE
<div class="output_area docutils container">
<div class="highlight"><pre>
&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;
RangeIndex: 226891 entries, 0 to 226890
RangeIndex: 226961 entries, 0 to 226960
Data columns (total 27 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 ISO3 226891 non-null category
1 Province 226891 non-null category
2 City 226891 non-null category
3 Date 226891 non-null datetime64[ns]
4 Cancel_events 178070 non-null Float64
5 Confirmed 205577 non-null Float64
6 Contact_tracing 178013 non-null Float64
7 Country 224419 non-null string
8 Fatal 189037 non-null Float64
9 Gatherings_restrictions 178049 non-null Float64
10 Information_campaigns 178044 non-null Float64
11 Internal_movement_restrictions 178056 non-null Float64
12 International_movement_restrictions 178036 non-null Float64
13 Population 223427 non-null Float64
0 ISO3 226961 non-null category
1 Province 226961 non-null category
2 City 226961 non-null category
3 Date 226961 non-null datetime64[ns]
4 Cancel_events 178167 non-null Float64
5 Confirmed 205651 non-null Float64
6 Contact_tracing 178109 non-null Float64
7 Country 224493 non-null string
8 Fatal 189110 non-null Float64
9 Gatherings_restrictions 178146 non-null Float64
10 Information_campaigns 178140 non-null Float64
11 Internal_movement_restrictions 178153 non-null Float64
12 International_movement_restrictions 178132 non-null Float64
13 Population 223501 non-null Float64
14 Product 120930 non-null string
15 Recovered 71762 non-null Float64
16 School_closing 178088 non-null Float64
17 Stay_home_restrictions 177980 non-null Float64
18 Stringency_index 178005 non-null Float64
19 Testing_policy 178026 non-null Float64
20 Tests 86109 non-null Float64
21 Transport_closing 178042 non-null Float64
15 Recovered 71763 non-null Float64
16 School_closing 178185 non-null Float64
17 Stay_home_restrictions 178077 non-null Float64
18 Stringency_index 178102 non-null Float64
19 Testing_policy 178122 non-null Float64
20 Tests 86110 non-null Float64
21 Transport_closing 178139 non-null Float64
22 Vaccinated_full 49138 non-null Float64
23 Vaccinated_once 51722 non-null Float64
24 Vaccinations 54420 non-null Float64
25 Vaccinations_boosters 27163 non-null Float64
26 Workplace_closing 178051 non-null Float64
26 Workplace_closing 178148 non-null Float64
dtypes: Float64(21), category(3), datetime64[ns](1), string(2)
memory usage: 47.0 MB
</pre></div></div>
Expand Down Expand Up @@ -624,8 +624,8 @@ <h3>1-1. With <code class="docutils literal notranslate"><span class="pre">DataE
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
2022-10-10 at 08:18:06 | INFO | Retrieving COVID-19 dataset from https://github.com/lisphilar/covid19-sir/data/
2022-10-10 at 08:18:07 | INFO | Retrieving datasets from COVID-19 Data Hub https://covid19datahub.io/
2022-10-10 at 08:55:02 | INFO | Retrieving COVID-19 dataset from https://github.com/lisphilar/covid19-sir/data/
2022-10-10 at 08:55:03 | INFO | Retrieving datasets from COVID-19 Data Hub https://covid19datahub.io/
</pre></div></div>
</div>
<div class="nboutput nblast docutils container">
Expand Down Expand Up @@ -816,7 +816,7 @@ <h3>1-1. With <code class="docutils literal notranslate"><span class="pre">DataE
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
2022-10-10 at 08:18:10 | INFO | Retrieving datasets from COVID-19 Data Hub https://covid19datahub.io/
2022-10-10 at 08:55:06 | INFO | Retrieving datasets from COVID-19 Data Hub https://covid19datahub.io/
</pre></div></div>
</div>
<div class="nboutput nblast docutils container">
Expand Down Expand Up @@ -1020,37 +1020,37 @@ <h3>1-2. With <code class="docutils literal notranslate"><span class="pre">DataD
<div class="output_area docutils container">
<div class="highlight"><pre>
&lt;class &#39;pandas.core.frame.DataFrame&#39;&gt;
RangeIndex: 226891 entries, 0 to 226890
RangeIndex: 226961 entries, 0 to 226960
Data columns (total 27 columns):
# Column Non-Null Count Dtype
--- ------ -------------- -----
0 ISO3 226891 non-null string
1 Province 226891 non-null string
2 City 226891 non-null string
3 Date 226891 non-null datetime64[ns]
4 Cancel_events 178070 non-null Float64
5 Confirmed 205577 non-null Float64
6 Contact_tracing 178013 non-null Float64
7 Country 224419 non-null string
8 Fatal 189037 non-null Float64
9 Gatherings_restrictions 178049 non-null Float64
10 Information_campaigns 178044 non-null Float64
11 Internal_movement_restrictions 178056 non-null Float64
12 International_movement_restrictions 178036 non-null Float64
13 Population 223427 non-null Float64
0 ISO3 226961 non-null string
1 Province 226961 non-null string
2 City 226961 non-null string
3 Date 226961 non-null datetime64[ns]
4 Cancel_events 178167 non-null Float64
5 Confirmed 205651 non-null Float64
6 Contact_tracing 178109 non-null Float64
7 Country 224493 non-null string
8 Fatal 189110 non-null Float64
9 Gatherings_restrictions 178146 non-null Float64
10 Information_campaigns 178140 non-null Float64
11 Internal_movement_restrictions 178153 non-null Float64
12 International_movement_restrictions 178132 non-null Float64
13 Population 223501 non-null Float64
14 Product 120930 non-null string
15 Recovered 71762 non-null Float64
16 School_closing 178088 non-null Float64
17 Stay_home_restrictions 177980 non-null Float64
18 Stringency_index 178005 non-null Float64
19 Testing_policy 178026 non-null Float64
20 Tests 86109 non-null Float64
21 Transport_closing 178042 non-null Float64
15 Recovered 71763 non-null Float64
16 School_closing 178185 non-null Float64
17 Stay_home_restrictions 178077 non-null Float64
18 Stringency_index 178102 non-null Float64
19 Testing_policy 178122 non-null Float64
20 Tests 86110 non-null Float64
21 Transport_closing 178139 non-null Float64
22 Vaccinated_full 49138 non-null Float64
23 Vaccinated_once 51722 non-null Float64
24 Vaccinations 54420 non-null Float64
25 Vaccinations_boosters 27163 non-null Float64
26 Workplace_closing 178051 non-null Float64
26 Workplace_closing 178148 non-null Float64
dtypes: Float64(21), datetime64[ns](1), string(5)
memory usage: 51.3 MB
</pre></div></div>
Expand Down Expand Up @@ -2025,7 +2025,7 @@ <h3>2-2. Convert line list to the number of cases data<a class="headerlink" href
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
2022-10-10 at 08:19:35 | INFO | Retrieving GIS data from Natural Earth https://www.naturalearthdata.com/
2022-10-10 at 08:56:38 | INFO | Retrieving GIS data from Natural Earth https://www.naturalearthdata.com/
</pre></div></div>
</div>
<div class="nboutput nblast docutils container">
Expand Down Expand Up @@ -2081,8 +2081,8 @@ <h3>2-3. Retrieve total population data<a class="headerlink" href="#2-3.-Retriev
</div>
<div class="output_area docutils container">
<div class="highlight"><pre>
2022-10-10 at 08:19:38 | INFO | Retrieving datasets from World Population Prospects https://population.un.org/wpp/
2022-10-10 at 08:19:44 | INFO | [INFO] &#39;Province&#39; layer was removed.
2022-10-10 at 08:56:42 | INFO | Retrieving datasets from World Population Prospects https://population.un.org/wpp/
2022-10-10 at 08:56:47 | INFO | [INFO] &#39;Province&#39; layer was removed.
</pre></div></div>
</div>
<div class="nboutput docutils container">
Expand Down
Loading

0 comments on commit 7fa13f0

Please sign in to comment.