In this repository, we collected some Jupyter Notebooks containing basic examples on how to use pySpainMobility
Here is a short description on what each notebook contains:
00-weekend-vs-weekdays.ipynbdownload an example of 1 week of data and split them into weekend and weekdays OD matrices. Also, each origin and destination is mapped with its centroid01-madrid.ipynbdownload data as GUA level for 1 week, extract the data for Madrid and plot them into a time serie02-flow-madrid-barcelona.ipynbextract the flows between Madrid and Barcelona03-socio-demographic-disaggregation.ipynbdisaggregate mobility flows with respect to age bins and other socio-demographic factors04-paper.ipynbreproduce some of the figures in the paper