Words
Remote Paths in Python
This post is a follow-up to the post on working with local filesystems in Python. This brief post will describe the benefits of cloudpathlib in working with remote filesystems. Creating...
Local Paths in Python
This brief post will describe the benefits of pathlib over os.Path. When using Python, we often need to interact with the filesystem, for instance to create, delete, read or write...
Creating a Serverless API with AWS and FastAPI
This post will describe what AWS is, what an API is, how we can deploy it on AWS, as well as the code behind the infrastructure. Already have experience on...
Sankey Diagrams
Today we’ll be looking at Sankey Diagrams, which are a great way of visualising changes in state between groups. We’ll look at seats gained and lost in the 2019 UK...
Geospatial Analytics
I’ve added to the python workshops repo with a guide on the basics of Geospatial Analytics. We’ll be going through: Data gathering and manipulation with geopandas Interactive visualisation with hvplot...
GitHub Actions
Note: this post assumes some prior basic knowledge of git, such as the definition of terms like commit and push. A few months ago, Github finally announced native CI/CD, a...
Decorators, Dataclasses and IDEs
I’ve added to the python workshops repo with a guide on Python Decorators, the advantages of Dataclasses, and the benefits of using an IDE Here. It explains the benefits of...
Scikit-Learn Pipelines
Here’s a repo which explains the basics of scikit-learn pipelines and why they can both save time and prevent data leakage. It introduces the sklearn.Pipeline class, how to instantiate a...
Python Utils Module
Often when writing code it makes sense to abstract some functionality into a helper function. This is usually stored at the top of your file and saves having to write...