this repository aims to show examples of data processing using python. These examples are used in the python course developed for www.mamba-python.nl (Dutch).
A jupyter notebook with an analysis of twitter data from US congress members. The sentiment of the tweets from US congress members is automatically analysed. The results are shown in a plot with the daily average sentiment for the republican and democratic party. Outliers are analysed and annotations are added with the cause of the outlier.
the following sources are used for this analysis:
- twitter text data from https://github.com/alexlitel/congresstweets
- twitter user data from https://github.com/alexlitel/congresstweets-automator
- polarity analysis tool from https://github.com/sloria/textblob
A jupyter notebook with the analysis of a whatsapp conversation. The data was obtained by exporting a single Whatsapp chat (see https://faq.whatsapp.com/en/android/23756533/). I did not add the full chat to this repository because of privacy issues. I did create an anonymised pandas dataframe that you can read to reproduce my results. I left the original code for the full chat so you can read you own results.
A jupyter notebook with the results of a simple, fictional groundwater model. To model groundwater levels over time, meteorological data from the Netherlands is used. The animation shown below shows the unusual drought the Netherlands is facing in 2018.