-
Notifications
You must be signed in to change notification settings - Fork 1
/
python.html
600 lines (495 loc) · 22.1 KB
/
python.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
<!DOCTYPE html>
<html class="w-100 h-100">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
D-Lab Workshops
</title>
<link rel="icon" type="image/png" sizes="32x32" href="static/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="static/images/favicon-16x16.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://bootswatch.com/4/litera/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<!-- Fontawesome JS -->
<script defer src="https://use.fontawesome.com/releases/v5.0.10/js/all.js" integrity="sha384-slN8GvtUJGnv6ca26v8EzVaR9DC58QEwsIk9q1QXdCU8Yu8ck/tL/5szYlBbqmS+" crossorigin="anonymous"></script>
<!-- Custom CSS -->
<link rel="stylesheet" href="static/stylesheets/style.css">
</head>
<body class="w-100 h-100">
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top borderless">
<a
class="navbar-brand"
href="index.html"
>
D-Lab Workshops
</a>
<button class="navbar-toggler borderless" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarColor01">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link active" href="python.html">Home</a>
<li class="nav-item">
<a class="nav-link" href="library.html">Library</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://dlab.berkeley.edu/">About D-Lab</a>
</li>
</ul>
</div>
</nav>
<!-- End of Navbar -->
<!-- Content -->
<div class="row mx-auto w-100 mt-5 justify-content-md-center">
<div class="col-md-offset-2 col-md-8 mt-5 text-center">
<h5 class="display-5">
Click below to see which D-Lab workshop is best for you!
</h5>
<a href="https://dlab.berkeley.edu/training/upcoming-workshops"><button type="button" class="btn btn-info">Book a workshop!</button></a>
<div class="mt-5 w-100 jumbotron mx-auto">
<h1>Python Modules</h1>
<!-- Add buttons for languages -->
<a href="python.html"><button type="button" class="btn btn-secondary" disabled>Python</button></a>
<a href="R.html"><button type="button" class="btn btn-warning">R</button></a>
<a href="other.html"><button type="button" class="btn btn-success">Other</button></a>
<hr class="my-4">
<!-- LEVEL -->
<blockquote class="display-5 clickable">"I don't know anything about Python or Jupyter. I want to start from the beginning!"</blockquote>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Fundamentals</h4>
<p class="lead">The absolute basics</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>This three-part interactive workshop series is your complete introduction to programming Python for people with little or no previous programming experience, with a focus on data science application. It covers the basics of Python and Jupyter, variables and data types, and a gentle introduction to data analysis in Pandas.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/python-fundamentals">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="http://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Fundamentals&urlpath=lab%2Ftree%2FPython-Fundamentals%2F">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Fundamentals/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Intermediate</h4>
<p class="lead">Building on the basics</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>This three-part interactive workshop series is a follow-up to D-Lab's Python Fundamentals. It is intended for people who want to learn about core structures of Python that underpin data analysis. We cover loops and conditionals, creating your own functions, analysis and visualization in Pandas, and the workflow of a data science project.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/python-intermediate">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Intermediate-Pilot&urlpath=lab%2Ftree%2FPython-Intermediate-Pilot%2F">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Intermediate-Pilot/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- LEVEL -->
<blockquote class="display-5 clickable">"I know the basics of Jupyter, Python, and Pandas. I want to learn how to retrieve online data."</blockquote>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Web Scraping</h4>
<p class="lead">Scrape HTML/CSS data from websites</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>In this workshop, we cover how to scrape data from the web using Python. Web scraping involves downloading a webpage's source code and sifting through the material to extract desired data.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-web-scraping">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Web-Scraping&urlpath=lab%2Ftree%2FPython-Web-Scraping%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Web-Scraping/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Web APIs</h4>
<p class="lead">Obtain data from web platforms</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>In this workshop, we cover how to extract data from the web with APIs using Python. APIs are often official services offered by companies and other entities, which allow you to directly query their servers in order to retrieve their data. Platforms like The New York Times, Twitter and Reddit offer APIs to retrieve data.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-Web-APIs/">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Web-APIs&urlpath=lab%2Ftree%2FPython-Web-APIs%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Web-APIs/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- LEVEL -->
<blockquote class="display-5 clickable">"I know the basics of Jupyter, Python, and Pandas. I want to learn more about data analysis and visualization."</blockquote>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Data Wrangling</h4>
<p class="lead">Manipulate DataFrames using Pandas in Python</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>In this workshop, we provide an introduction to data wrangling with Python. We will do so largely with the pandas package, which provides a rich set of tools to manipulate and interact with data frames, the most common data structure used when analyzing tabular data. We'll learn how to manipulate, index, merge, group, and plot data frames using pandas functions.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-data-wrangling">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Data-Wrangling-Pilot&urlpath=tree%2FPython-Data-Wrangling-Pilot%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Data-Wrangling-Pilot/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Data Visualization</h4>
<p class="lead">Pandas, Matplotlib, and Seaborn</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>In this workshop, we provide an introduction to data visualization with Python. First, we'll cover some basics of visualization theory. Then, we'll explore how to plot data in Python using the matplotlib and seaborn packages.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-Data-Visualization">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Data-Visualization&urlpath=tree%2FPython-Data-Visualization%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Data-Visualization/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- LEVEL -->
<blockquote class="display-5 clickable">"I know a fair bit about Python and Pandas. I want to learn more advanced topics like Machine Learning."</blockquote>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Text Analysis</h4>
<p class="lead">Bag-of-words, sentiment analysis, topic modeling, word embeddings, and more</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>This workshop is part of a loosely-coupled 4-part text analysis workshop series that will prepare participants to move forward with research that uses text analysis, with a special focus on social science applications. We explore fundamental approaches to applying computational methods to text in Python. We cover some of the major packages used in natural language processing, including scikit-learn, NLTK, spaCy, and Gensim.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/python-text-analysis">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Text-Analysis&urlpath=lab%2Ftree%2FPython-Text-Analysis%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Text-Analysis/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Machine Learning</h4>
<p class="lead">Classification, regression, clustering in Python</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>In this workshop, we provide an introduction to machine learning in Python. First, we'll cover some machine learning basics, including its foundational principles. Then, we'll dive into code, understanding how to perform regression, regularization, preprocessing, and classification.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-Machine-Learning">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Machine-Learning&urlpath=lab%2Ftree%2FPython-Machine-Learning%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Machine-Learning/HEAD">
<i class="fas fa-book"></i> Binder
</a>
</div>
</div>
</div>
</div>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Geospatial Fundamentals</h4>
<p class="lead">Analyzing geospatial data using GeoPandas in Python</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>Geospatial data are an important component of data visualization and analysis in the social sciences, humanities, and elsewhere. The Python programming language is a great platform for exploring these data and integrating them into your research.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-Geospatial-Fundamentals">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Geospatial-Fundamentals&urlpath=tree%2FPython-Geospatial-Fundamentals%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://mybinder.org/v2/gh/dlab-berkeley/Python-Geospatial-Fundamentals/HEAD">
<i class="fas fa-book"></i> Binder
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://docs.google.com/presentation/d/1vDWfqAVKhOMVBC6U-uussHo6Nk7Q33PQ5uQ9iTG2S8I/edit?usp=share_link">
<i class="fas fa-book"></i> Slides
</a>
</div>
</div>
</div>
</div>
<!-- Featured Module Block -->
<div class="card border-info content toggle-content">
<div class="row card-body">
<!-- Title Column -->
<div class="d-flex justify-content-center flex-column col-md-3">
<h4 class="card-title">Python Deep Learning</h4>
<p class="lead">Create and train neural networks using Tensorflow and Keras.</p>
</div>
<!-- Paragraph Column -->
<div class="d-flex justify-content-center flex-column col-md-6">
<p class="card-text">
<p>This workshop conveys the basics of deep learning in Python using keras on image datasets. Students are empowered with a general grasp of deep learning, example code that they can modify, a working computational environment, and resources for further study.
</p>
</div>
<!-- Link Column -->
<div class="d-flex justify-content-center pb-4 flex-column col-md-3">
<div class="btn-group-vertical my-3">
<a
class="btn btn-primary"
tabindex="0"
href="https://github.com/dlab-berkeley/Python-Deep-Learning">
<i class="fab fa-github"></i> Github
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://dlab.datahub.berkeley.edu/hub/user-redirect/git-pull?repo=https%3A%2F%2Fgithub.com%2Fdlab-berkeley%2FPython-Deep-Learning&urlpath=tree%2FPython-Deep-Learning%2F&branch=main">
<i class="fas fa-database"></i> Datahub
</a>
<a
class="btn btn-primary"
tabindex="0"
href="https://colab.research.google.com/github/dlab-berkeley/Python-Deep-Learning/blob/main/lessons/01-Vanilla-Neural-Networks.ipynb">
<i class="fas fa-book"></i> Google Colab
</a>
</div>
</div>
</div>
</div>
<a href="python_path.html"><button type="button" class="btn btn-dark">View learning path</button></a>
</div>
<!-- End Content -->
</div>
</div>
<script>
$(document).ready(function () {
let currentlyOpen = null;
$("blockquote.display-5.clickable").each(function (index, clickableElement) {
$(clickableElement).click(function () {
let currentElements = $(clickableElement).nextUntil("blockquote").filter('.toggle-content');
// Hide the currently open content blocks if they are not the ones being clicked
if (currentlyOpen !== null && currentlyOpen.get(0) !== currentElements.get(0)) {
$(currentlyOpen).slideUp();
}
if (currentElements.is(":visible")) {
$(currentElements).slideUp();
currentlyOpen = null;
} else {
$(currentElements).slideDown();
currentlyOpen = currentElements;
}
});
});
});
</script>
<!-- Bootstrap JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>