2021 SPECIAL - GET 50% OFF ALL COURSES - LIMITED TIME OFFER!!!

The Remarkable Similarity of Covid-19 Infection Waves throughout the World

Uncategorized Dec 01, 2020

I have been modeling covid-19 cases and deaths in all areas of the world for the past six months. I built the coronavirus forecasting dashboard which makes predictions for covid cases/deaths for all countries and US states. In this post, I will explore the remarkable similarity of covid infection waves across many areas of the world.

Image for post
Image for post
Screenshot of the Coronavirus Forecasting Dashboard — coronavirus.dunderdata.com

Similarity of Covid Waves by Area

Understanding the shape and...

Continue Reading...

More than 99.9% of the Pfizer Vaccine Placebo Group did not get a severe case of covid

covid vaccine Nov 28, 2020

The Pfizer vaccine trial has 43,000 participants. Exact breakdown between treatment and placebo groups is not given, but they do provide the number of covid cases in each group. Currently, there are 162 covid cases in the placebo group.

Assuming a 50/50 split, 99.25% of the placebo group did not get covid.

Additionally, only 9 in the placebo group had a "severe case" and no one died. That is 99.96% in the placebo group did not have a severe case.

Caveats

We need to know the overall...

Continue Reading...

Instantly Beautify Matplotlib Plots by Viewing all Available Styles

In this post, you'll learn about the different available matplotlib styles that can instantly change the appearance of the plot. Let's begin by making a simple line plot using the default style. This simple style is often the first (and sometimes only) style that many people encounter with matplotlib not realizing how easy it is to choose others.

In [1]:
import matplotlib.pyplot as plt import numpy as np x = np.arange(-2, 8, .1) y = .1 * x ** 3 - x ** 2 + 3 * x + 2 fig, ax...
Continue Reading...

Automate Publishing of Jupyter Notebooks as Medium Blog Posts with jupyter_to_medium

jupyter notebook Jun 02, 2020
 

I am very excited to announce the official release of jupyter_to_medium, a Python package that extends Jupyter Notebooks, allowing you to automate the process of publishing them as Medium blog posts.

Motivation

I've published dozens of blog posts on Medium myself with all of them beginning as Jupyter Notebooks. Manually converting them to Medium posts was a fairly lengthy, painstaking process. One particularly painful process was inserting tables, which Medium does not support, into...

Continue Reading...

Official Release of bar_chart_race - A Python Package for Creating Animated Bar Chart Races

 

I'm excited to announce the official release of bar_chart_race, a python package for creating bar chart races. In this post, I'll cover many of the major available options. Navigate to the official documentation for a full breakdown of all of the options.

Motivation

Bar chart races have become very popular over the last year and no python package existed to create them. I also built some for my coronavirus dashboard.

Installation

Install with:

pip install...
Continue Reading...

Create a Bar Chart Race Animation in Python with Matplotlib

visualization Apr 30, 2020
 

In this tutorial, you'll learn how to create a bar chart race animation such as the one below using the matplotlib data visualization library in python.

bar_chart_race python package

Along with this tutorial is the release of the python package bar_chart_race that automates the process of making these animations. This post explains the procedure from scratch.

What is a bar chart race?

A bar chart race is an animated sequence of bars that show data values at...

Continue Reading...

Create a Tesla Cybertruck that Drives with Matplotlib

visualization Jan 17, 2020

In this tutorial, you will learn how to create the new Tesla Cybertruck using matplotlib. I was inspired by the image below which was originally created by Lynn Fisher (without matplotlib).

Before going into detail, let’s jump to the results. Here is the completed recreation of the Tesla Cybertruck that drives off the screen.

Tutorial

A tutorial now follows containing all the steps that creates a Tesla Cybertruck that drives. It covers the following topics:

  • Figure...
Continue Reading...

Minimally Sufficient Pandas Cheat Sheet

pandas Jan 03, 2020

This article summarizes the very detailed guide presented in Minimally Sufficient Pandas.

Begin Mastering Data Science Now for Free!

Take my free Intro to Pandas course to begin your journey mastering data analysis with Python.

What is Minimally Sufficient Pandas?

  • It is a small subset of the library that is sufficient to accomplish nearly everything that it has to offer.
  • It allows you to focus on doing data analysis and not the syntax

How will Minimally Sufficient Pandas benefit...

Continue Reading...

Minimally Sufficient Pandas

pandas Jan 01, 2020

In this article, I will offer an opinionated perspective on how to best use the Pandas library for data analysis. My objective is to argue that only a small subset of the library is sufficient to complete nearly all of the data analysis tasks that one will encounter. This minimally sufficient subset of the library will benefit both beginners and professionals using Pandas. Not everyone will agree with the suggestions I lay forward, but they are how...

Continue Reading...

Recreate Tesla Cybertruck in Matplotlib - Dunder Data Challenge #6 Solution

dunder data challenges Dec 10, 2019
 

In this post, we recreate the new Tesla Cybertruck using matplotlib and animate it so that it drives. Our goal is to recreate this image below.

Click the video at the top of this post to view the animation and final solution.

Begin Mastering Data Science Now for Free!

Take my free Intro to Pandas course to begin your journey mastering data analysis with Python.

Tutorial

A tutorial will now follow that describes the recreation. It will discuss the...

Continue Reading...
1 2 3 4
Close

Register for a free account

Upon registration, you'll get access to four free courses.