Skip to content

Commit 6914df0

Browse files
committed
File updated
1 parent 46276a7 commit 6914df0

File tree

8 files changed

+574
-82
lines changed

8 files changed

+574
-82
lines changed

Exercise01/Exercise01.ipynb

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 2,
12+
"execution_count": 1,
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
@@ -25,7 +25,7 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": 3,
28+
"execution_count": 2,
2929
"metadata": {},
3030
"outputs": [
3131
{
@@ -34,7 +34,7 @@
3434
"[1, 2, 3]"
3535
]
3636
},
37-
"execution_count": 3,
37+
"execution_count": 2,
3838
"metadata": {},
3939
"output_type": "execute_result"
4040
}
@@ -53,7 +53,7 @@
5353
},
5454
{
5555
"cell_type": "code",
56-
"execution_count": 4,
56+
"execution_count": 3,
5757
"metadata": {},
5858
"outputs": [
5959
{
@@ -62,7 +62,7 @@
6262
"array([1, 2, 3])"
6363
]
6464
},
65-
"execution_count": 4,
65+
"execution_count": 3,
6666
"metadata": {},
6767
"output_type": "execute_result"
6868
}
@@ -81,7 +81,7 @@
8181
},
8282
{
8383
"cell_type": "code",
84-
"execution_count": 5,
84+
"execution_count": 4,
8585
"metadata": {},
8686
"outputs": [
8787
{
@@ -90,7 +90,7 @@
9090
"array([1.2, 3.4, 5.6])"
9191
]
9292
},
93-
"execution_count": 5,
93+
"execution_count": 4,
9494
"metadata": {},
9595
"output_type": "execute_result"
9696
}
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
"cell_type": "code",
112-
"execution_count": 6,
112+
"execution_count": 5,
113113
"metadata": {},
114114
"outputs": [
115115
{
@@ -118,7 +118,7 @@
118118
"numpy.ndarray"
119119
]
120120
},
121-
"execution_count": 6,
121+
"execution_count": 5,
122122
"metadata": {},
123123
"output_type": "execute_result"
124124
}
@@ -129,7 +129,7 @@
129129
},
130130
{
131131
"cell_type": "code",
132-
"execution_count": 7,
132+
"execution_count": 6,
133133
"metadata": {},
134134
"outputs": [
135135
{
@@ -138,7 +138,7 @@
138138
"numpy.ndarray"
139139
]
140140
},
141-
"execution_count": 7,
141+
"execution_count": 6,
142142
"metadata": {},
143143
"output_type": "execute_result"
144144
}
@@ -149,9 +149,20 @@
149149
},
150150
{
151151
"cell_type": "code",
152-
"execution_count": null,
152+
"execution_count": 7,
153153
"metadata": {},
154-
"outputs": [],
154+
"outputs": [
155+
{
156+
"data": {
157+
"text/plain": [
158+
"list"
159+
]
160+
},
161+
"execution_count": 7,
162+
"metadata": {},
163+
"output_type": "execute_result"
164+
}
165+
],
155166
"source": [
156167
"type(list_1)"
157168
]
@@ -165,8 +176,10 @@
165176
},
166177
{
167178
"cell_type": "code",
168-
"execution_count": 9,
169-
"metadata": {},
179+
"execution_count": 8,
180+
"metadata": {
181+
"scrolled": true
182+
},
170183
"outputs": [
171184
{
172185
"data": {
@@ -183,27 +196,45 @@
183196
" ('AMT', 136), ('AWK', 137), ('AMP', 138), ('ABC', 139),\n",
184197
" ('AME', 140), ('AMGN', 141), ('APH', 142), ('APC', 143),\n",
185198
" ('ADI', 144), ('ANDV', 145), ('ANSS', 146), ('ANTM', 147),\n",
186-
" ('AON', 148)], dtype=[('Symbol', '<U5'), ('Price', '<i8')])"
199+
" ('AON', 148)], dtype=[('Symbol', '<U5'), ('Price', '<i4')])"
187200
]
188201
},
189-
"execution_count": 9,
202+
"execution_count": 8,
190203
"metadata": {},
191204
"output_type": "execute_result"
192205
}
193206
],
194207
"source": [
195-
"data = np.genfromtxt('stock.csv', delimiter=',', names=True,dtype=None, encoding='ascii')\n",
208+
"data = np.genfromtxt('../datasets/stock.csv', delimiter=',', names=True,dtype=None, encoding='ascii')\n",
196209
"data"
197210
]
198211
},
199212
{
200213
"cell_type": "code",
201-
"execution_count": null,
214+
"execution_count": 9,
202215
"metadata": {},
203-
"outputs": [],
216+
"outputs": [
217+
{
218+
"data": {
219+
"text/plain": [
220+
"numpy.ndarray"
221+
]
222+
},
223+
"execution_count": 9,
224+
"metadata": {},
225+
"output_type": "execute_result"
226+
}
227+
],
204228
"source": [
205229
"type(data)"
206230
]
231+
},
232+
{
233+
"cell_type": "code",
234+
"execution_count": null,
235+
"metadata": {},
236+
"outputs": [],
237+
"source": []
207238
}
208239
],
209240
"metadata": {
@@ -222,7 +253,7 @@
222253
"name": "python",
223254
"nbconvert_exporter": "python",
224255
"pygments_lexer": "ipython3",
225-
"version": "3.7.3"
256+
"version": "3.7.4"
226257
}
227258
},
228259
"nbformat": 4,

Exercise02/Exercise02.ipynb

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
{
2121
"cell_type": "code",
22-
"execution_count": 6,
22+
"execution_count": 2,
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
@@ -35,7 +35,7 @@
3535
},
3636
{
3737
"cell_type": "code",
38-
"execution_count": 2,
38+
"execution_count": 3,
3939
"metadata": {},
4040
"outputs": [],
4141
"source": [
@@ -44,7 +44,7 @@
4444
},
4545
{
4646
"cell_type": "code",
47-
"execution_count": 3,
47+
"execution_count": 4,
4848
"metadata": {},
4949
"outputs": [
5050
{
@@ -53,7 +53,7 @@
5353
"[1, 2, 3, 1, 2, 3]"
5454
]
5555
},
56-
"execution_count": 3,
56+
"execution_count": 4,
5757
"metadata": {},
5858
"output_type": "execute_result"
5959
}
@@ -71,7 +71,7 @@
7171
},
7272
{
7373
"cell_type": "code",
74-
"execution_count": 9,
74+
"execution_count": 5,
7575
"metadata": {},
7676
"outputs": [
7777
{
@@ -80,7 +80,7 @@
8080
"array([2, 4, 6])"
8181
]
8282
},
83-
"execution_count": 9,
83+
"execution_count": 5,
8484
"metadata": {},
8585
"output_type": "execute_result"
8686
}
@@ -99,7 +99,7 @@
9999
},
100100
{
101101
"cell_type": "code",
102-
"execution_count": 23,
102+
"execution_count": 6,
103103
"metadata": {},
104104
"outputs": [
105105
{
@@ -112,16 +112,23 @@
112112
" 290., 292., 294., 296.])"
113113
]
114114
},
115-
"execution_count": 23,
115+
"execution_count": 6,
116116
"metadata": {},
117117
"output_type": "execute_result"
118118
}
119119
],
120120
"source": [
121-
"data = np.genfromtxt('numbers.csv', delimiter=',', names=True)\n",
121+
"data = np.genfromtxt('../datasets/numbers.csv', delimiter=',', names=True)\n",
122122
"data = data.astype('float64')\n",
123123
"data + data"
124124
]
125+
},
126+
{
127+
"cell_type": "code",
128+
"execution_count": null,
129+
"metadata": {},
130+
"outputs": [],
131+
"source": []
125132
}
126133
],
127134
"metadata": {
@@ -140,7 +147,7 @@
140147
"name": "python",
141148
"nbconvert_exporter": "python",
142149
"pygments_lexer": "ipython3",
143-
"version": "3.7.3"
150+
"version": "3.7.4"
144151
}
145152
},
146153
"nbformat": 4,

Exercise04/Exercise04.ipynb

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": 10,
12+
"execution_count": 1,
1313
"metadata": {},
1414
"outputs": [
1515
{
@@ -65,14 +65,14 @@
6565
" [148]]"
6666
]
6767
},
68-
"execution_count": 10,
68+
"execution_count": 1,
6969
"metadata": {},
7070
"output_type": "execute_result"
7171
}
7272
],
7373
"source": [
7474
"import pandas as pd\n",
75-
"df = pd.read_csv(\"numbers.csv\")\n",
75+
"df = pd.read_csv(\"../datasets/numbers.csv\")\n",
7676
"list_5 = df.values.tolist()\n",
7777
"list_5"
7878
]
@@ -86,7 +86,7 @@
8686
},
8787
{
8888
"cell_type": "code",
89-
"execution_count": 12,
89+
"execution_count": 2,
9090
"metadata": {},
9191
"outputs": [
9292
{
@@ -142,7 +142,7 @@
142142
" [148]])"
143143
]
144144
},
145-
"execution_count": 12,
145+
"execution_count": 2,
146146
"metadata": {},
147147
"output_type": "execute_result"
148148
}
@@ -163,7 +163,7 @@
163163
},
164164
{
165165
"cell_type": "code",
166-
"execution_count": 13,
166+
"execution_count": 3,
167167
"metadata": {},
168168
"outputs": [
169169
{
@@ -219,7 +219,7 @@
219219
" [-0.33833339]])"
220220
]
221221
},
222-
"execution_count": 13,
222+
"execution_count": 3,
223223
"metadata": {},
224224
"output_type": "execute_result"
225225
}
@@ -237,7 +237,7 @@
237237
},
238238
{
239239
"cell_type": "code",
240-
"execution_count": 16,
240+
"execution_count": 4,
241241
"metadata": {},
242242
"outputs": [
243243
{
@@ -293,7 +293,7 @@
293293
" [4.99721227]])"
294294
]
295295
},
296-
"execution_count": 16,
296+
"execution_count": 4,
297297
"metadata": {},
298298
"output_type": "execute_result"
299299
}
@@ -311,7 +311,7 @@
311311
},
312312
{
313313
"cell_type": "code",
314-
"execution_count": 17,
314+
"execution_count": 5,
315315
"metadata": {},
316316
"outputs": [
317317
{
@@ -367,7 +367,7 @@
367367
" [1.88618081e+64]])"
368368
]
369369
},
370-
"execution_count": 17,
370+
"execution_count": 5,
371371
"metadata": {},
372372
"output_type": "execute_result"
373373
}
@@ -393,7 +393,7 @@
393393
"name": "python",
394394
"nbconvert_exporter": "python",
395395
"pygments_lexer": "ipython3",
396-
"version": "3.7.3"
396+
"version": "3.7.4"
397397
}
398398
},
399399
"nbformat": 4,

0 commit comments

Comments
 (0)