Lehrende: Dr. Sebastian Nagel
Veranstaltungsart: Seminar
Orga-Einheit: Graduate School | ZUGS
Anzeige im Stundenplan: 40002
Credits: 4,0
Standort: Campus der Zeppelin Universität
Unterrichtssprache: Englisch
Min. | Max. Teilnehmerzahl: 5 | 14
Inhalte: Python is a programming language that found wide-spread adoption in data science, machine learning, and web-development applications while valuing code-readability. This course offers a two-day introduction to some core-features that Python offers to social scientists. The course will predominantly focus on applying Python in practice by teaching participants how to scrape websites, to train machine-learning algorithms, and to process text in an automated fashion. The course aims to provide and hands-on examples that participants can then adapt to their own needs and research interests. The schedule can be adapted in parts to the needs and wishes of the participants. To ensure that everyone is on the same level, participants are expected to complete a short online course introducing researchers to the basic concepts of Python beforehand. The workshop starts with a quick dive into the Python language. However, it's recommended (esp. for anybody new to programming) to work through a Python online course or book to understand the Python basics. The focus of the workshop is to *use* Python. Also important for the workshop: bring your laptop and - either install a Python 3 interpreter and programming environment, eg. https://docs.anaconda.com/anaconda/install/ - or get access to Google Colaboratory to view, edit and replay Jupyter notebooks in a web browser https://colab.research.google.com/) You should be able to execute Python code, replay the examples and later on prepare your course work. Below a few links to introductory Python courses or books: - Coursera/Google "Crash Course on Python" https://www.coursera.org/learn/python-crash-course - Coursera/IBM "Python for Data Science and AI" https://www.coursera.org/learn/python-for-applied-data-science-ai - Anand Chitipothu "Python Practice Book" https://anandology.com/python-practice-book/index.html - "The (Official) Python Tutorial" https://docs.python.org/3/tutorial/index.html - Kushal Das "Welcome to Python for you and me" https://pymbook.readthedocs.io/en/latest/index.html The workshop is organized jointly by the Zeppelin University and the University of Konstanz. Workshop Schedule Day One – Monday, 24.01.22 1. Introduction Python puzzles / recap data types control structures classes and objects modules Warm Up: Python runtime and development environments Python interpreter editors, IDEs Jupyter notebooks, Anaconda virtual environment, Docker Set Up: last-minute help desk setting up Python work environment 2. Working with Structured Data read data from local files CSV and JSON elementary data analysis: Pandas and data frames plotting basics 3. The Twitter API what is an API? - using the example of Twitter get access use a client: DocNow/twarc tweets, user timelines, followers, trends text statistics, language, sentiment Day Two – Tuesday, 25.01.22 1. Web Scraping HTTP requests HTML, XML, DOM tree, CSS selectors, XPath browser automation (Selenium, Puppeteer, Playwright) cleanse and export extracted data 2. Text Processing and Machine Learning pre-processing and tokenization (splitting text into words) n-grams, vectorization and word embeddings train and evaluate a text classifier 3. Q&A / Closing