Data stored in a csv file can often contain JSON objects in one of the fields. The
csv data can easily be loaded into a Pandas Dataframe for analysis. Fields of
interest in the JSON object can also be extracted into their own column easily using
A lot of time was spent in 2020 looking at daily covid numbers, which was getting
overwhelming. Having taken a break for a while, this article combines covid data and
vaccination data with population data to present a view of the countries with the
highest deaths from Covid-19 and the vaccination status in the country.
There is a filter method on Pandas DataFrame, but it is limited to only filtering
on the labels on the index columns. There are multiple ways to filter a DataFrame to
focus on the information required. This article demonstrates a number of ways to
filter data in a DataFrame.
ipywidgets are interactive HTML elements that can be used in Jupyter Notebooks to
interact with outputs such as tables and charts. This article briefly introduces
ipywidgets and uses them to change the rolling day period in a chart for the rolling
average of deaths from covid-19.
Three dimensional objects are not easy to represent on a 2D surface such as a page or
screen. In this article, inspired by chapter 3 of Math for Programmers book, we
look at the cross product of two 3D-vectors and representing the surface of any 3D
object as a collection of triangles. The cross product can be used to …
Compressing multiple files into one archive file allows for faster files transfer.
Image files in the form of jpg are already compressed and compressing them into zip
files does not significantly reduce the file size further. However, it does reduce
the number files to one archive file and this makes file transfer …