Quantum 1 - Python For Web Data - Withjava - August26
Quantum 1 - Python For Web Data - Withjava - August26
Teaching assistants: Gustav Finne, Anh Nguyen, Sinh Mai, Elyas Saif, Joosua
Virtanen, Xiaogeng Xu and Marco Lambrecht
Course description
This course introduces frameworks for accessing web data and doing textual
analysis with Python 3. The course introduces the basics of Python syntax. After the
basics, the focus is on data use and access. Data (pandas) and textual analyses are
reviewed. Networked programs are reviewed including web scraping (BeautifulSoup).
Web services are reviewed including API contracts. Interactive webpage development
is introduced. Examples used are relevant for financial analysts.
Learning objectives
(1) Small projects (a-d) 0-80 points. Select a maximum of 4 (out of 5) small projects to
submit. The project is individual work. Upload through Moodle before deadline
(see Moodle submission section).
a. Python basics [0-20 points] (including printing, comments, variables,
numbers, math, strings, if/else, lists, loops, dictionaries, functions)
b. Data (pandas) and textual analysis [0-20 points] (data analysis with pandas,
OLS regressions, and textual analysis)
c. Networked programs [0-20 points] (opening web pages to be treated like
files, web scraping, BeautifulSoup)
d. Web services [0-20 points] (APIs)
e. Interactive web pages [0-20 points]
(2) Learning diary 0-20 points. Individual work that discusses what you have learned
and reviews the course content and your projects.
• Review the course content and your projects as well as discuss what you have
learned.
• Discuss how you could automate repetitive tasks regarding (i) data access, and (ii)
data & textual analysis for an equity fund that updates its stock portfolio regularly.
• How do you think business students can benefit from Python programming in
general?
Introduction to the course (August 30, 10:15-11:15, online with Microsoft Teams):
Overview of course and requirements
- Installing Python 3 via Anaconda
https://docs.anaconda.com/anaconda/install/windows/
- Using Jupiter notebook
Pre-assignment: Watch the session 1 recording (on Moodle) on the Python syntax
Literature:
- Jake VanderPlas “A Whirlwind Tour of Python”
https://jakevdp.github.io/WhirlwindTourOfPython/
Background video:
- Intro to Python for Business with Mattan Griffel (Columbia University)
https://www.youtube.com/watch?v=32LiJFZC484
Session 2 (September 10, 8:30-10:30, online with Microsoft Teams): Data analysis
with pandas and textual analysis
- Anh Nguyen shows how to (i) import data files to Jupyter (ii) run regressions
with the data, and (iii) visualize data
Literature:
- Dr. Charles R. Severance: ”Python for Everybody: Exploring Data Using
Python 3” (Chapter 11)
https://www.py4e.com/book.php
- Pandas:
https://pandas.pydata.org/pandas-docs/stable/getting_started/index.html
Literature:
- Dr. Charles R. Severance: ”Python for Everybody: Exploring Data Using
Python 3” (Chapter 12)
https://www.py4e.com/book.php
Session 4 (September 17, 8:30-10:00, online with Microsoft Teams): Web services
- Accessing web data via APIs
- We will use Python to access databases in Quantum throughs APIs
Literature:
- Dr. Charles R. Severance: ”Python for Everybody: Exploring Data Using
Python 3” (Chapter 13)
https://www.py4e.com/book.php