Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mooc-rr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
a76a105ccce500acd74b5f6c5ef4f439
mooc-rr
Commits
34b0d58c
Commit
34b0d58c
authored
Nov 26, 2021
by
a76a105ccce500acd74b5f6c5ef4f439
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add various notebooks
parent
5f629081
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2064 additions
and
16 deletions
+2064
-16
toy_notebook_en.ipynb
module2/exo1/toy_notebook_en.ipynb
+1
-1
exercice.ipynb
module2/exo2/exercice.ipynb
+96
-3
influenza-like-illness-analysis.ipynb
module3/exo1/influenza-like-illness-analysis.ipynb
+32
-12
raw_influenza_incidence_data.csv
module3/exo1/raw_influenza_incidence_data.csv
+1935
-0
No files found.
module2/exo1/toy_notebook_en.ipynb
View file @
34b0d58c
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
"cell_type": "markdown",
"cell_type": "markdown",
"metadata": {},
"metadata": {},
"source": [
"source": [
"#
1.2
Buffon's needle\n",
"# Buffon's needle\n",
"Applying the method of [Buffon's needle](https://en.wikipedia.org/wiki/Buffon%27s_needle_problem), we get the **approximation**"
"Applying the method of [Buffon's needle](https://en.wikipedia.org/wiki/Buffon%27s_needle_problem), we get the **approximation**"
]
]
},
},
...
...
module2/exo2/exercice.ipynb
View file @
34b0d58c
This diff is collapsed.
Click to expand it.
module3/exo1/influenza-like-illness-analysis.ipynb
View file @
34b0d58c
...
@@ -9,16 +9,16 @@
...
@@ -9,16 +9,16 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {
"metadata": {},
"collapsed": true
},
"outputs": [],
"outputs": [],
"source": [
"source": [
"%matplotlib inline\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import pandas as pd\n",
"import isoweek"
"import isoweek\n",
"\n",
"from os.path import isfile"
]
]
},
},
{
{
...
@@ -30,12 +30,11 @@
...
@@ -30,12 +30,11 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {
"metadata": {},
"collapsed": true
},
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Website for initial download\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
]
]
},
},
...
@@ -63,12 +62,33 @@
...
@@ -63,12 +62,33 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
null
,
"execution_count":
4
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"# Initial download and saving a local copy\n",
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data = pd.read_csv(data_url, skiprows=1)\n",
"raw_data"
"fname = \"raw_influenza_incidence_data.csv\"\n",
"raw_data.to_csv(fname)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Before loading the website from the internet, check if a local copy already exists. If a local copy exists, load it into a dataframe. If not, then get it from the URL. "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"if isfile(fname):\n",
" raw_data = pd.read_csv(fname, skiprows=1)\n",
"else:\n",
" raw_data = pd.read_csv(data_url, skiprows=1)"
]
]
},
},
{
{
...
@@ -365,7 +385,7 @@
...
@@ -365,7 +385,7 @@
"name": "python",
"name": "python",
"nbconvert_exporter": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"pygments_lexer": "ipython3",
"version": "3.6.
1
"
"version": "3.6.
4
"
}
}
},
},
"nbformat": 4,
"nbformat": 4,
...
...
module3/exo1/raw_influenza_incidence_data.csv
0 → 100644
View file @
34b0d58c
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment