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
39781cc7cca0dc30af9d6060ede9947c
mooc-rr
Commits
1a76f325
Commit
1a76f325
authored
Apr 19, 2020
by
39781cc7cca0dc30af9d6060ede9947c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fonction écriture en local
parent
4add1110
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1857 additions
and
1853 deletions
+1857
-1853
analyse-syndrome-grippal.ipynb
module3/exo1/analyse-syndrome-grippal.ipynb
+6
-1
incidence-PAY-3.csv
module3/exo1/incidence-PAY-3.csv
+1851
-1852
No files found.
module3/exo1/analyse-syndrome-grippal.ipynb
View file @
1a76f325
...
@@ -32,12 +32,13 @@
...
@@ -32,12 +32,13 @@
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"source": [
"source": [
"# URL du fichier de données\n",
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
"data_url = \"http://www.sentiweb.fr/datasets/incidence-PAY-3.csv\""
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
5
,
"execution_count":
8
,
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
...
@@ -49,11 +50,15 @@
...
@@ -49,11 +50,15 @@
}
}
],
],
"source": [
"source": [
"# Vérification de la présence du fichier en local\n",
"# Si non, téléchargement à partir de l'URL\n",
"import os.path\n",
"import os.path\n",
"# Vérifier si le fichier existe ou non\n",
"# Vérifier si le fichier existe ou non\n",
"if os.path.isfile('incidence-PAY-3.csv'):\n",
"if os.path.isfile('incidence-PAY-3.csv'):\n",
" print(\"Fichier trouvé\")\n",
" print(\"Fichier trouvé\")\n",
" raw_data = pd.read_csv('incidence-PAY-3.csv', skiprows=1)\n",
" raw_data = pd.read_csv('incidence-PAY-3.csv', skiprows=1)\n",
" # Ecrituredu fichier en local\n",
" raw_data.to_csv('incidence-PAY-3.csv')\n",
"else:\n",
"else:\n",
" print(\"Fichier non trouvé\")\n",
" print(\"Fichier non trouvé\")\n",
" print(\"Téléchargement du fichier sur le site Web\")\n",
" print(\"Téléchargement du fichier sur le site Web\")\n",
...
...
module3/exo1/incidence-PAY-3.csv
View file @
1a76f325
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