Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
module3
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
c4aa83a2eb0510a399feb4e7c1611960
module3
Commits
7ab79d47
Commit
7ab79d47
authored
Mar 03, 2021
by
Corentin Ambroise
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exo1
parents
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
analyse-syndrome-grippal_fr.org
exo1/analyse-syndrome-grippal_fr.org
+25
-0
No files found.
exo1/analyse-syndrome-grippal_fr.org
0 → 100644
View file @
7ab79d47
Here we dowload the data locally, but test first if the data does not
exist. Then we read it and display the first few rows.
#+begin_src python :results output :session :exports both
import wget
import os
import pandas as pd
url = 'http://www.sentiweb.fr/datasets/incidence-PAY-3.csv'
path = './dataset_grippal.csv'
if not os.path.exists(path):
wget.download(url, path)
data = pd.read_csv(path, skiprows=1)
print(data.head())
#+end_src
#+RESULTS:
: week indicator inc inc_low ... inc100_low inc100_up geo_insee geo_name
: 0 202108 3 27492 22140.0 ... 34.0 50.0 FR France
: 1 202107 3 22191 18096.0 ... 28.0 40.0 FR France
: 2 202106 3 23171 19122.0 ... 29.0 41.0 FR France
: 3 202105 3 22426 18445.0 ... 28.0 40.0 FR France
: 4 202104 3 25804 21491.0 ... 32.0 46.0 FR France
:
: [5 rows x 10 columns]
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