How Pandas_Alive was Made

Posted by Jack McKew on Fri 26 June 2020 in Python • Tagged with Python • 5 min read

Pandas-Alive is an open source Python package for making animated charts from Pandas dataframes. This project was first inspired by a very specific COVID-19 visualisation, so I set out to make this visualisation a reality.

This visualisation consisted of a bar chart race showing regions, a line chart showing new …


Continue reading

Geopandas and Pandas Alive

Posted by Jack McKew on Fri 12 June 2020 in Python • Tagged with python, visualisation • 6 min read

Geopandas and Pandas_Alive

Following on from a previous post on making animated charts with pandas_alive, let's go into generating animated charts specifically for geospatial data with geopandas. Support for geopandas was introduced into pandas_alive in version 0.2.0, along with functionality to interface with contextily for enabling basemaps. The …


Continue reading

Make a README & Documentation with Jupyter Notebooks

Posted by Jack McKew on Fri 05 June 2020 in Python • Tagged with python • 5 min read

README is typically the front page of a project, and should contain relevant information for current users & prospective users. As to make sure documentation across a project is consistent as well, imagine if we could include this README that is the front page of our project, both on the repository …


Continue reading

Translating Text in Python

Posted by Jack McKew on Fri 29 May 2020 in Data Science • Tagged with datascience, python • 9 min read

Working with data in a connected digital world, means you will possibly encounter data in a language outside your own. In this post we'll go into ways to translate this data in Python.

First off we need some sample text, and what is better to read about then pizza!

In …

Continue reading

Managing Virtual Environments on Windows

Posted by Jack McKew on Thu 30 April 2020 in Python • Tagged with Python • 3 min read

Managing virtual environments for Python on Windows was never straightforward in my experience. There is so many different tools available (which is fantastic!), it's difficult to find the right combination for Python projects. This post is for the combination of tools that work for my application, if there are any …


Continue reading

Packaging Python Packages with Poetry

Posted by Jack McKew on Wed 25 March 2020 in Python • Tagged with python • 6 min read

Packaging Python code to easily share code with others!

Building upon a previous post on "How many words have I written in this blog?", let's dive into how to share this code with other on PyPI and integrate into this website with a 'word ticker' which updates whenever a new …


Continue reading

Counting Words with Python

Posted by Jack McKew on Thu 19 March 2020 in Python • Tagged with python • 5 min read

Recursively counting words in markdown within a folder

In the last 55 posts, I've written 34846 words in this blog. In comparison, my engineering thesis for graduating university was 9916 words across 69 pages.

A question had popped into my mind this week, "How many words have I written in …


Continue reading

Python Bytes Awesome Package List

Posted by Jack McKew on Wed 11 March 2020 in Python • Tagged with python • 6 min read

Python Bytes is a weekly, short & sweet podcast by Michael Kennedy & Brian Okken. After having the podcast recommended numerous times by friends & colleagues, I decided to download every episode thus far on the 14th of September 2019. Over the next 174 days, whenever I was commuting, I'd listen to 171 …


Continue reading

3D Gradient Descent in Python

Posted by Jack McKew on Wed 26 February 2020 in Python • Tagged with python, visualisation, generative • 40 min read

Visualising gradient descent in 3 dimensions

Building upon our terrain generator from the blog post: https://jackmckew.dev/3d-terrain-in-python.html, today we will implement a demonstration of how gradient descent behaves in 3 dimensions and produce an interactive visualisation similar to the terrain visualisation. Note that my understanding of gradient …


Continue reading

Getting Started in Python

Posted by Jack McKew on Thu 20 February 2020 in Python • Tagged with python • 4 min read

Resources & tips for getting started in Python

Glossary

One of the most useful skills in my opinion in all walks of life is the ability to find information & answers. A very useful tool for doing this is the internet & search engines like Google. In my opinion being able to search …


Continue reading