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
d24bcd136c9baa600f332b2f8b973d62
mooc-rr
Commits
8fdaf64f
Commit
8fdaf64f
authored
Dec 13, 2022
by
d24bcd136c9baa600f332b2f8b973d62
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mooc
parent
3d869708
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
exercice.mooc.ipynb
module3/exo3/exercice.mooc.ipynb
+11
-3
No files found.
module3/exo3/exercice.mooc.ipynb
View file @
8fdaf64f
...
...
@@ -198,8 +198,6 @@
}
],
"source": [
"# how much percentage Gender in the dataset\n",
"\n",
"df['Smoker'].value_counts().plot.pie(explode=[0,0.1],autopct='%1.1f%%',shadow=True)"
]
},
...
...
@@ -230,7 +228,7 @@
}
],
"source": [
"#
how much percentage Gender in the dataset
\n",
"#
Taux de mortalité (le rapport entre le nombre de femmes décédées dans un groupe et le nombre total de femmes dans ce groupe)
\n",
"\n",
"df['Status'].value_counts().plot.pie(explode=[0,0.1],autopct='%1.1f%%',shadow=True)"
]
...
...
@@ -888,11 +886,21 @@
}
],
"source": [
"#Taux de mortalité\n",
"df=df.groupby(['age_group','status']).size()\n",
"df=df.unstack()\n",
"df.plot(kind='bar')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"#le taus de mort est plus eleve a partir a partir de 34 ans "
]
},
{
"cell_type": "code",
"execution_count": 44,
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