Skip to content
Snippets Groups Projects
Commit ad8530a3 authored by Robert Lanzafame's avatar Robert Lanzafame
Browse files

Merge branch 'remove-programming'

parents 2d83bae4 a50804a4
No related branches found
No related tags found
No related merge requests found
Pipeline #237109 passed
Showing
with 3 additions and 14766 deletions
......@@ -372,84 +372,7 @@ parts:
# title: Assignment 2
# - file: EVA_old/MUDE/01_06_4-1-EVA2_teacher.ipynb
# title: Solution 2
# END REMOVE-FROM-PUBLISH
- caption: Programming
numbered: 3
chapters:
- file: programming/overview
title: Overview
- file: programming/golden_rules.ipynb
title: The Golden Rules
- file: programming/programs/overview
title: Programs
sections:
- file: programming/programs/git/version_control
- file: programming/programs/git/gui/overview
title: git and GitLab (GUI)
sections:
- file: programming/programs/git/gui/cloning
title: Cloning
- file: programming/programs/git/gui/commits_local
title: Local Commits
- file: programming/programs/git/gui/commits_remote
title: Remote Commits
- file: programming/programs/git/gui/fetch_pull
title: Fetch and Pull
- file: programming/programs/git/gui/pushing_problems
title: Pushing Problems
- file: programming/programs/git/cli/overview
title: git and GitLab (CLI)
sections:
- file: programming/programs/git/cli/getting_started
title: Getting Started
- file: programming/programs/git/cli/remote
title: Remote Repositories
# START REMOVE-FROM-PUBLISH
- file: programming/programs/git/cli/branch_merge
- file: programming/programs/git/cli/merge_conflicts
- file: programming/programs/git/cli/git_the_rest
title: The Rest
# END REMOVE-FROM-PUBLISH
- file: programming/programs/debugging/overview
title: Debugging and Testing
sections:
- file: programming/programs/debugging/errors
title: Error Types
- file: programming/programs/debugging/traceback
title: Traceback
# START REMOVE-FROM-PUBLISH
- file: programming/programs/debugging/errors_raise_handle
- file: programming/programs/debugging/assertions
- file: programming/programs/debugging/logging
- file: programming/programs/debugging/exercises
# END REMOVE-FROM-PUBLISH
# Python Topics ADDED OCTOBER 2023 (REVISE FOR 2024)
- file: programming/python_topics/overview
sections:
- file: programming/python_topics/classes
title: Classes
- file: programming/python_topics/visualization
title: Advanced Visualization
- file: programming/sympy/sympy.ipynb
# START REMOVE-FROM-PUBLISH
- file: programming/python_topics/modules
title: Modules
# TO BE ADDED LATER: NUMPY ADVANCED, PANDAS, PYTHONIC, ETC.
# REMOVED OCTOBER 2023 TO REORGGANIZE IN "Python Topics"
# - file: programming/communication/overview
# title: Communication
# sections:
# - file: programming/communication/visualization
# - file: programming/code/overview
# title: Computers & Code
# sections:
# - file: programming/code/packages
# - file: programming/code/environments
# END REMOVE-FROM-PUBLISH
- caption: Fundamental Concepts
numbered: 2
chapters:
......@@ -471,44 +394,10 @@ parts:
- file: fundamentals/eemc-stuff
# START REMOVE-FROM-PUBLISH
# Coding
- caption: Coding (Last Year)
- caption: Programming
chapters:
- file: old/coding/overview.md
- file: old/coding/1-1/1-overview.md
sections:
- file: old/coding/1-1/1-1-student.ipynb
- file: old/coding/1-1/1-1-solution.ipynb
- file: old/coding/1-1/1-2-student.ipynb
- file: old/coding/1-1/1-2-solution.ipynb
- file: old/coding/1-4/1-overview.md
sections:
- file: old/coding/1-4/1-2-oop-student
- file: old/coding/1-4/1-2-oop-solution
- file: old/coding/1-4/1-3-modules-student
- file: old/coding/1-4/1-3-modules-solution
- file: old/coding/1-6/1-overview.md
sections:
- file: old/coding/1-6/1_1_Introduction_student.ipynb
- file: old/coding/1-6/1_2_Points_student.ipynb
- file: old/coding/1-6/1_3_Lines_student.ipynb
- file: old/coding/1-6/1_6_Lines_teacher.ipynb
- file: old/coding/1-6/1_4_Polygons_student.ipynb
- file: old/coding/1-6/1_7_Polygons_teacher.ipynb
- file: old/coding/1-6/1_5_Rasters_student.ipynb
- file: old/coding/1-6/1_8_Rasters_teacher.ipynb
- file: old/coding/2-2/1-overview.md
sections:
- file: old/coding/2-2/1-software.md
- file: old/coding/2-2/1-part-1.md
sections:
- file: old/coding/2-2/1_1.ipynb
- file: old/coding/2-2/1_2.ipynb
- file: old/coding/2-2/1-part-2.md
- file: old/coding/2-2/1-part-3.md
- file: programming.md
title: REMOVED
- caption: Sandbox
chapters:
- file: sandbox/blank
......
# blank chapter
There is no content here yet. This file is a chapter.
\ No newline at end of file
Source diff could not be displayed: it is too large. Options to address this: view the blob.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
(code-1-1)=
# Numpy, Pandas & Matplotlib
There were 2 notebooks that introduced 3 packages (`numpy`, `pandas` and `matplotlib`). Two copies are included for each (the teacher version includes the solution).
```{tableofcontents}
```
\ No newline at end of file
0.1, 5.0
0.2, 6.0
0.3, 5.7
0.4, 6.7
0.5, 5.8
0.6, 4.5
0.7, 4.9
0.8, 5.6
0.9, 5.7
1.0, 5.3
\ No newline at end of file
0.1 5.0
0.2 6.0
0.3 5.7
0.4 6.7
0.5 5.8
0.6 4.5
0.7 4.9
0.8 5.6
0.9 5.7
1.0 5.3
\ No newline at end of file
import numpy as np
import matplotlib.pyplot as plt
def plot_taxi_time_series(array):
plt.figure(figsize=(10, 10))
plt.plot(array[:,0], array[:,1])
plt.xlabel('Day of the year')
plt.ylabel('Daily total duration of taxi rides [minutes]')
plt.show()
def plot_taxi_weeks(array, labels):
plt.figure(figsize=(5, 8))
plt.imshow(array)
plt.xticks([0, 1, 2, 3, 4, 5, 6], labels, rotation=60)
plt.ylabel('Week number')
plt.yticks(np.arange(26), np.arange(1,27))
bar = plt.colorbar()
bar.set_label('Total daily taxi ride duration [minutes]')
\ No newline at end of file
1,2975
2,2412
3,2523
4,2805
5,2856
6,3447
7,3546
8,3908
9,3505
10,3371
11,2996
12,3138
13,3458
14,3541
15,3686
16,5049
17,2746
18,2639
19,2999
20,3794
21,4069
22,3793
23,948
24,1410
25,3661
26,5528
27,3787
28,3934
29,4304
30,5325
31,3256
32,3370
33,3260
34,4189
35,5326
36,3440
37,3362
38,3209
39,3005
40,3378
41,4977
42,4161
43,4618
44,4900
45,5319
46,2715
47,3843
48,5568
49,3926
50,3948
51,6351
52,4516
53,3543
54,4258
55,3799
56,4430
57,4498
58,5527
59,3681
60,4562
61,3437
62,4249
63,5609
64,9037
65,4214
66,3203
67,3059
68,3512
69,4237
70,4365
71,4296
72,5610
73,3309
74,5634
75,7116
76,3968
77,4662
78,4471
79,5910
80,3328
81,4724
82,3546
83,3625
84,5433
85,4161
86,3362
87,4382
88,3140
89,5174
90,3832
91,6672
92,4251
93,4009
94,5259
95,4956
96,4362
97,3866
98,6665
99,5761
100,4226
101,3376
102,3412
103,4365
104,4058
105,5140
106,5195
107,5920
108,4069
109,3182
110,3867
111,5206
112,3593
113,4563
114,4758
115,3331
116,3227
117,4671
118,4052
119,4025
120,5847
121,4136
122,4802
123,3080
124,4217
125,3796
126,4709
127,5155
128,4247
129,4697
130,4922
131,3849
132,3358
133,6704
134,6826
135,3940
136,5711
137,5282
138,4880
139,5752
140,4630
141,5028
142,4476
143,3683
144,3141
145,3865
146,5943
147,4996
148,3846
149,4437
150,3188
151,3444
152,3505
153,4176
154,5929
155,4126
156,4093
157,3929
158,4869
159,3794
160,4278
161,6276
162,4529
163,4842
164,4637
165,3019
166,4050
167,4497
168,5103
169,5242
170,3530
171,3362
172,3577
173,3843
174,4206
175,3849
176,5426
177,4815
178,3282
179,4356
180,3528
181,3540
182,3724
File deleted
book/old/coding/1-1/tuesday/barcharts.png

53.4 KiB

This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
(code-1-4)=
# Debugging, Testing, Object-Oriented Programming, Modules
This week's Python coding workshop is divided in three parts [in brackets the estimated time without optional material]:
1. Debugging and Testing [~1hour]
2. Object-Oriented Programming [~2hours]
3. Modules [~30 minutes]
You are supposed to do the three tutorials in the order displayed above. Download each part in your local laptop in a separate folder, or use JupyterHub.
If you need to catch-up with previous material, or if you are still struggling with Python, the following simplified workshop is recommended:
1. Debugging and Testing
<span style="color:darkred">Do the entire notebook apart from sections, paragraphs and exercises marked as optional.</span>
1. Object-Oriented Programming
<span style="color:darkred">Do only until the topic "Refining the Rocket class".</span>
1. Modules
<span style="color:darkred">Do until the section "Optional Material".</span>
```{tableofcontents}
```
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment