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
f78962c1
Commit
f78962c1
authored
Apr 07, 2020
by
cb1e5ba91280d02583d0604166e71c1c
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no commit message
parent
62e4f7ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
20 deletions
+55
-20
exercice.ipynb
module3/exo3/exercice.ipynb
+55
-20
No files found.
module3/exo3/exercice.ipynb
View file @
f78962c1
...
@@ -1847,7 +1847,7 @@
...
@@ -1847,7 +1847,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
18
,
"execution_count":
32
,
"metadata": {
"metadata": {
"hideCode": true,
"hideCode": true,
"hidePrompt": true,
"hidePrompt": true,
...
@@ -2002,7 +2002,7 @@
...
@@ -2002,7 +2002,7 @@
"1962 0.7890 0.8740 0.9562 "
"1962 0.7890 0.8740 0.9562 "
]
]
},
},
"execution_count":
18
,
"execution_count":
32
,
"metadata": {},
"metadata": {},
"output_type": "execute_result"
"output_type": "execute_result"
}
}
...
@@ -2035,47 +2035,82 @@
...
@@ -2035,47 +2035,82 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
null
,
"execution_count":
274
,
"metadata": {
"metadata": {
"hideCode": true,
"hideCode": true,
"hidePrompt": true
"hidePrompt": true
},
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"2020"
]
},
"execution_count": 274,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"d"
"dfa = df[['Yr','Mn','Date 2','s5']]\n",
"an_b = df2.loc[1960, : ]\n",
"an_n = df2.loc[1961, : ]\n",
"year, mois = dfa[-1:]['Yr'].values, dfa[-1:]['Mn'].values\n",
"#for val in per1: \n",
"# print(val.date()) "
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
null
,
"execution_count":
325
,
"metadata": {
"metadata": {
"hideCode": true,
"hideCode": true,
"hidePrompt": true
"hidePrompt": true,
"scrolled": false
},
},
"outputs": [],
"outputs": [
{
"data": {
"text/plain": [
"2025"
]
},
"execution_count": 325,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"source": [
"0.0416+0.083"
"# Année de fin d'extrapolation \n",
"ymj_fin = datetime.date(2025, 12, 1)\n",
"\n",
"ymj = df[-1:].index[0].isoformat() \n",
"per1 = pd.date_range(start = ymj,end =ymj_fin, freq=pd.DateOffset(months=1))\n",
"Yr = pd.Series([q.year for q in per1],index = per1 )\n",
"Mn = pd.Series([q.month for q in per1],index = per1)\n",
" \n",
"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({'Data2' : Data2})\n",
"dfa\n",
"ymj_fin.year\n",
"\n"
]
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
"metadata": {
"metadata": {},
"hideCode": true,
"hidePrompt": true
},
"outputs": [],
"outputs": [],
"source": [
"source": []
"df[-1:]"
]
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": null,
"execution_count": null,
"metadata": {
"metadata": {},
"hideCode": true,
"hidePrompt": true
},
"outputs": [],
"outputs": [],
"source": []
"source": []
}
}
...
...
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