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
57e92ddd8e047446b30777d5b69846d1
mooc-rr
Commits
412ec23c
Commit
412ec23c
authored
Feb 04, 2023
by
57e92ddd8e047446b30777d5b69846d1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix check
parent
1f2fe6a1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2009 additions
and
10 deletions
+2009
-10
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+11
-10
raw_data.csv
module3/exo1/raw_data.csv
+1998
-0
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
412ec23c
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
8
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
"import matplotlib.pyplot as plt\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import pandas as pd\n",
"import isoweek\n",
"import isoweek\n",
"import os.path"
"import os.path\n",
"import urllib.request"
]
]
},
},
{
{
...
@@ -38,15 +39,14 @@
...
@@ -38,15 +39,14 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
6
,
"execution_count":
10
,
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"raw_file = r'c:/temp.csv'\n",
"# copie local si elle n'existe pas\n",
"if( os.path.isfile(raw_file) ):\n",
"raw_file = r'raw_data.csv'\n",
" raw_data = pd.read_csv(raw_file, skiprows=1)\n",
"if not os.path.isfile(raw_file):\n",
"else:\n",
" urllib.request.urlretrieve(data_url, raw_file)"
" raw_data = pd.read_csv(data_url, skiprows=1)"
]
]
},
},
{
{
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
7
,
"execution_count":
11
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -1038,12 +1038,13 @@
...
@@ -1038,12 +1038,13 @@
"[1996 rows x 10 columns]"
"[1996 rows x 10 columns]"
]
]
},
},
"execution_count":
7
,
"execution_count":
11
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
],
],
"source": [
"source": [
"raw_data = pd.read_csv(raw_file, skiprows=1)\n",
"raw_data"
"raw_data"
]
]
},
},
...
...
module3/exo1/raw_data.csv
0 → 100644
View file @
412ec23c
This diff is collapsed.
Click to expand it.
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