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
cb1e5ba91280d02583d0604166e71c1c
mooc-rr
Commits
b03b9d31
Commit
b03b9d31
authored
Apr 07, 2020
by
cb1e5ba91280d02583d0604166e71c1c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no commit message
parent
f78962c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
142 additions
and
7 deletions
+142
-7
exercice.ipynb
module3/exo3/exercice.ipynb
+142
-7
No files found.
module3/exo3/exercice.ipynb
View file @
b03b9d31
...
...
@@ -2063,7 +2063,7 @@
},
{
"cell_type": "code",
"execution_count": 32
5
,
"execution_count": 32
7
,
"metadata": {
"hideCode": true,
"hidePrompt": true,
...
...
@@ -2072,11 +2072,148 @@
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Data 2</th>\n",
" <th>Mn</th>\n",
" <th>Yr</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>2020-01-01</th>\n",
" <td>2020.0410</td>\n",
" <td>1</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020-02-01</th>\n",
" <td>2020.1257</td>\n",
" <td>2</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020-03-01</th>\n",
" <td>2020.2049</td>\n",
" <td>3</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020-04-01</th>\n",
" <td>2020.2896</td>\n",
" <td>4</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020-05-01</th>\n",
" <td>2020.3716</td>\n",
" <td>5</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020-06-01</th>\n",
" <td>2020.4563</td>\n",
" <td>6</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2020-07-01</th>\n",
" <td>2020.5383</td>\n",
" <td>7</td>\n",
" <td>2020</td>\n",
" </tr>\n",
" <tr>\n",
" <th>...</th>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" <td>...</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-06-01</th>\n",
" <td>2025.4548</td>\n",
" <td>6</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-07-01</th>\n",
" <td>2025.5370</td>\n",
" <td>7</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-08-01</th>\n",
" <td>2025.6219</td>\n",
" <td>8</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-09-01</th>\n",
" <td>2025.7068</td>\n",
" <td>9</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-10-01</th>\n",
" <td>2025.7890</td>\n",
" <td>10</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-11-01</th>\n",
" <td>2025.8740</td>\n",
" <td>11</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2025-12-01</th>\n",
" <td>2025.9562</td>\n",
" <td>12</td>\n",
" <td>2025</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>72 rows × 3 columns</p>\n",
"</div>"
],
"text/plain": [
"2025"
" Data 2 Mn Yr\n",
"2020-01-01 2020.0410 1 2020\n",
"2020-02-01 2020.1257 2 2020\n",
"2020-03-01 2020.2049 3 2020\n",
"2020-04-01 2020.2896 4 2020\n",
"2020-05-01 2020.3716 5 2020\n",
"2020-06-01 2020.4563 6 2020\n",
"2020-07-01 2020.5383 7 2020\n",
"... ... .. ...\n",
"2025-06-01 2025.4548 6 2025\n",
"2025-07-01 2025.5370 7 2025\n",
"2025-08-01 2025.6219 8 2025\n",
"2025-09-01 2025.7068 9 2025\n",
"2025-10-01 2025.7890 10 2025\n",
"2025-11-01 2025.8740 11 2025\n",
"2025-12-01 2025.9562 12 2025\n",
"\n",
"[72 rows x 3 columns]"
]
},
"execution_count": 32
5
,
"execution_count": 32
7
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -2093,11 +2230,9 @@
"s = [] # oblication d'initialiser ....\n",
"[s.extend(list(an_n)) if i%4!=0 else s.extend(list(an_b)) for i in np.arange(ymj_fin.year- year[0]+1)]\n",
"Data2 = pd.Series(s,index = per1)\n",
"dfa = pd.DataFrame({'Yr' : Yr,'Mn' : Mn,'Data 2' : Data2})\n",
"dfa = pd.DataFrame({'Yr' : Yr,'Mn' : Mn,'Data 2' : Data2
+ Yr
})\n",
"#dfa = pd.DataFrame({'Data2' : Data2})\n",
"dfa\n",
"ymj_fin.year\n",
"\n"
"dfa"
]
},
{
...
...
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