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
0e57e1b8e1a23d7aaeee34c5821213f6
mooc-rr
Commits
30fae98a
Commit
30fae98a
authored
May 23, 2021
by
0e57e1b8e1a23d7aaeee34c5821213f6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updatevf
parent
6d33769e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
22 deletions
+26
-22
exercice.ipynb
module3/exo2/exercice.ipynb
+26
-22
No files found.
module3/exo2/exercice.ipynb
View file @
30fae98a
...
...
@@ -9,14 +9,15 @@
},
{
"cell_type": "code",
"execution_count":
3
,
"execution_count":
102
,
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"import isoweek"
"import isoweek\n",
"import numpy as np"
]
},
{
...
...
@@ -3546,44 +3547,47 @@
"yearly_incidence.hist(xrot=20)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Reponse aux questions : années du maximum d'incience et années du minimum d'incidence."
]
},
{
"cell_type": "code",
"execution_count":
95
,
"execution_count":
108
,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"842373"
]
},
"execution_count": 95,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"2009 842373\n"
]
}
],
"source": [
"max(yearly_incidence)"
"maxindex = np.argmax(yearly_incidence)\n",
"print(maxindex,max(yearly_incidence))"
]
},
{
"cell_type": "code",
"execution_count":
9
3,
"execution_count":
11
3,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"516689"
]
},
"execution_count": 93,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"2002 516689\n"
]
}
],
"source": [
"min(yearly_incidence)"
"minindex = np.argmin(yearly_incidence)\n",
"print(minindex,min(yearly_incidence))"
]
},
{
...
...
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