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
1cda4be30895c9886fda013d21530393
mooc-rr
Commits
09321460
Commit
09321460
authored
Oct 22, 2020
by
1cda4be30895c9886fda013d21530393
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exercisemod3
parent
20abd168
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2229 additions
and
128 deletions
+2229
-128
exo5_en.ipynb
module2/exo5/exo5_en.ipynb
+314
-117
incidence-PAY-3.csv
module3/exo1/incidence-PAY-3.csv
+1879
-0
influenza-like-illness-analysis.ipynb
module3/exo1/influenza-like-illness-analysis.ipynb
+36
-11
No files found.
module2/exo5/exo5_en.ipynb
View file @
09321460
This diff is collapsed.
Click to expand it.
module3/exo1/incidence-PAY-3.csv
0 → 100644
View file @
09321460
This diff is collapsed.
Click to expand it.
module3/exo1/influenza-like-illness-analysis.ipynb
View file @
09321460
...
...
@@ -9,10 +9,8 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
...
...
@@ -30,13 +28,40 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"execution_count": 4,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Looking for file '%s' in the current directory... incidence-PAY-3.csv\n",
"'%s' not found! Downloading from internet... incidence-PAY-3.csv\n",
"'%s' download and saved locally.. incidence-PAY-3.csv\n"
]
}
],
"source": [
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
"import os,sys\n",
"import urllib\n",
"def check_data_file(fname):\n",
" files = os.listdir(\".\") # get the current directory listing\n",
" print(\"Looking for file '%s' in the current directory...\",fname)\n",
"\n",
" if fname not in files:\n",
" print(\"'%s' not found! Downloading from internet...\",fname)\n",
" addr = \"https://www.sentiweb.fr/datasets/incidence-PAY-3.csv\"\n",
" response = urllib.request.urlopen(addr)\n",
" data = response.read()\n",
" fileOut = open(fname, \"wb\")\n",
" fileOut.write(data)\n",
" fileOut.close()\n",
" print(\"'%s' download and saved locally..\",fname)\n",
" else:\n",
" print(\"File found in current directory..\")\n",
" \n",
"INPUT_FILE = \"incidence-PAY-3.csv\"\n",
"check_data_file(INPUT_FILE)"
]
},
{
...
...
@@ -365,7 +390,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.
1
"
"version": "3.6.
4
"
}
},
"nbformat": 4,
...
...
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