Python 101
This section introduces Python and computational notebooks for urban spatial analysis. These are high-level overviews of the key concepts and tools; for more depth, refer to the documentation for each library.
The best way to learn is by doing: experiment with the examples, break things, and consult the wider range of resources available online. Large Language Models can help accelerate your learning, but use them to deepen your understanding rather than as a substitute for it.
- Notebooks: What computational notebooks are and how to use them.
- Python Basics: Variables, data types, collections, control flow, and functions.
- Spatial Data: Points, lines, and polygons with the
shapelypackage. - GeoPandas: Handling geospatial datasets with
geopandas. - Urban Analytics: Downloading OSM data with
osmnxand analysing urban morphology withmomepy. - Data Science: Dimensionality reduction, clustering, and prediction with
seabornandscikit-learn.