Python shorts
In this Python posts series I go straight to the code to perform a particular practical/analytical task. The code is provided as a Jupyter Notebook, whose cells you may copy-paste into your own Jupyter Notebook. If you are new to Python, then you can visit this page first.
BERTopic actor-style matrix
Linking film styles to film makers with BERTopic Continue reading BERTopic actor-style matrix
The Hogwarts Regex challenge + explanation
A friendly coding challenge + explanation to get you started with Regular Expressions Continue reading The Hogwarts Regex challenge + explanation
Producing time series data from topic models in Scikit-learn
Analyzing more than 12.000 Disneyland Paris Tripadvisor reviews to detect understandings of Disneyland as a “magical world” vs Disneyland as a “hassle.” Continue reading Producing time series data from topic models in Scikit-learn
Compute community-level metrics in social networks with NetworkX
Community detection in dolphin networks (and why social scientists may be interested). Continue reading Compute community-level metrics in social networks with NetworkX
How to get started with Python
A friendly introduction to some powerful tools Continue reading How to get started with Python