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
f82c1c4a1227cdba8ff3317d228324d6
mooc-rr
Commits
66a66781
Commit
66a66781
authored
Apr 02, 2024
by
f82c1c4a1227cdba8ff3317d228324d6
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resultb
parent
9b0c220c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
exercice.ipynb
module3/exo3/exercice.ipynb
+8
-8
No files found.
module3/exo3/exercice.ipynb
View file @
66a66781
...
...
@@ -169,24 +169,24 @@
},
{
"cell_type": "code",
"execution_count":
9
,
"execution_count":
51
,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" Date Concentration Year Mean_CO2_Concentration\n",
"0 1958-03-29 316.19 1958 315.474\n",
"1 1958-04-05 317.31 1958 315.474\n",
"2 1958-04-12 317.69 1958 315.474\n",
"3 1958-04-19 317.58 1958 315.474\n",
"4 1958-04-26 316.48 1958 315.474\n"
" Date Concentration Year Mean_CO2_Concentration
Oscilation
\n",
"0 1958-03-29 316.19 1958 315.474
0.716
\n",
"1 1958-04-05 317.31 1958 315.474
1.836
\n",
"2 1958-04-12 317.69 1958 315.474
2.216
\n",
"3 1958-04-19 317.58 1958 315.474
2.106
\n",
"4 1958-04-26 316.48 1958 315.474
1.006
\n"
]
}
],
"source": [
"# Calculez la valeur moyenne par an et créez une nouvelle colonne 'Concentration moyenne de CO2'\n",
"# C
ontribution lente. C
alculez la valeur moyenne par an et créez une nouvelle colonne 'Concentration moyenne de CO2'\n",
"data['Mean_CO2_Concentration'] = data.groupby('Year')['Concentration'].transform('mean')\n",
"print(data.head())"
]
...
...
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