We have been trying to visualize Covid-19 datasets using the Python libraries Pandas and Matplotlib. It turns out that you can create videos and animated gifs using directly Matplotlib's animation package.

This is the code you need:

some imports

configure animations

prepare the figure

create the update function and define the animation object

save the animations to a gif file

In this case we have created three pie chart animations of the percentage of Covid-19 by country with three different speeds. They show nicely how the current epidemics is evolving comparatively per country. The Covid-19 phenomena starts as a local Chinese problem and at the end it becomes a global issue affecting mostly the US and Europe (for now).

Here are the animations:

slow

fast

super fast