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
c2f48af02e33cf3438be65f47ee492df
mooc-rr
Commits
40a9ac7b
Commit
40a9ac7b
authored
Dec 19, 2020
by
boulanlo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed error in data inspection
parent
c3765f98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
exercice_R_en.org
module3/exo3/exercice_R_en.org
+7
-11
No files found.
module3/exo3/exercice_R_en.org
View file @
40a9ac7b
...
...
@@ -131,24 +131,20 @@ data = try_download_data()
#+End_src
#+RESULTS:
: Python 3.8.6 (default, Sep 30 2020, 04:00:38)
: [GCC 10.2.0] on linux
: Type "help", "copyright", "credits" or "license" for more information.
: >>> python.el: native completion setup loaded
Let's print the first five lines for the last two dates.
#+Begin_src python :session :results value :exports results
[[x for x in y[:
5] + y[-2:]] for y in data[:1]] + [None] + [[x for x in y[:5
] + y[-2:]] for y in data[1:5]]
[[x for x in y[:
4] + y[-2:]] for y in data[:1]] + [None] + [[x for x in y[:4
] + y[-2:]] for y in data[1:5]]
#+End_src
#+RESULTS:
| Province/State | Country/Region | Lat | Long | 1
/22/20 | 1
2/14/20 | 12/15/20 |
|----------------+----------------+----------+-----------+---------
+---------
-+----------|
| | Afghanistan | 33.93911 | 67.709953 |
0 |
48718 | 48952 |
| | Albania | 41.1533 | 20.1683 |
0 |
49191 | 50000 |
| | Algeria | 28.0339 | 1.6596 |
0 |
92597 | 93065 |
| | Andorra | 42.5063 | 1.5218 |
0 |
7382 | 7382 |
| Province/State | Country/Region | Lat | Long | 12/14/20 | 12/15/20 |
|----------------+----------------+----------+-----------+----------+----------|
| | Afghanistan | 33.93911 | 67.709953 | 48718 | 48952 |
| | Albania | 41.1533 | 20.1683 | 49191 | 50000 |
| | Algeria | 28.0339 | 1.6596 | 92597 | 93065 |
| | Andorra | 42.5063 | 1.5218 | 7382 | 7382 |
** Checking for missing data
The data is generated automatically, but it's never too prudent to
...
...
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