Introduction to Cultural Analytics & Python

Designed by Melanie Walsh // Powered by Jupyter Book

This website hosts an online textbook, Introduction to Cultural Analytics & Python, which offers an introduction to the programming language Python that is specifically designed for people interested in the humanities and social sciences.


This book demonstrates how Python can be used to study cultural materials such as song lyrics, short stories, newspaper articles, tweets, Reddit posts, and film screenplays. It also introduces computational methods such as web scraping, APIs, topic modeling, Named Entity Recognition (NER), network analysis, and mapping.

These materials were originally created to support “Introduction to Cultural Analytics: Data, Computation & Culture,” an undergraduate course taught at Cornell University and the University of Washington.

What is Cultural Analytics?
Cultural analytics is the study of culture with computational methods. Culture is a broad term that includes literature, history, politics, art, music, social media, and a lot more. Cultural analytics is a growing research area in fields like Digital Humanities and Information Science.

Interactive Code

This book’s pages contain Python code that can be opened and run in a web browser without any prior installation or configuration. Click the launch button in the top right corner of any page to open and play with the code. See How To Interact With This Book for more information.

This course was inspired by a range of excellent course materials, including those by Lauren Klein, David Mimno, and Allison Parrish. The section “Working with Languages Beyond English” was co-authored with Quinn Dombrowski.

Suggested Citation

Melanie Walsh, Introduction to Cultural Analytics & Python, Version 1 (2021),

Support This Project

I’m proud to make this book freely available, but if you find it useful, and if you’d like to support its continued development and maintenance, you can buy me a coffee ☕.