Dunder Data Pandas Challenge Solutions 1-5

Uncategorized Nov 22, 2021

The solutions to the five Dunder Data Pandas Challenges will be presented below. Try these challenges for yourself at python.dunderdata.com before looking at the solutions. Video solutions for all of the challenges are available on YouTube. The following two datasets are used for the challenges.

import pandas as pd

emp = pd.read_csv('../data/employee.csv', parse_dates=['hire_date'])
emp.head(3)
png
movie = pd.read_csv('../data/movie.csv', index_col='title')
movie.head(3)

...

Continue Reading...

Dunder Data Python Challenge Solutions 1-5

python challenge Nov 17, 2021

The solutions to the five Dunder Data Python Challenges will be presented below. Try these challenges for yourself at python.dunderdata.com before looking at the solutions. Video solutions for all of the challenges are available on YouTube.

Challenge #1 (1pt)

Given a list of integers. Return the difference between the largest and smallest values.

def exercise_1(a_list):
"""
Parameters
----------
a_list : a list of integers

Returns
-------
an integer
"""
# YOUR CODE HERE
...
Continue Reading...

Daily Python and Pandas Challenges

Uncategorized Nov 10, 2021

I’m excited to announce Dunder Data Python and Pandas Challenges! One Python and one Pandas challenge will be released each weekday on python.dunderdata.com. They will vary in difficulty and cover a wide range of topics.

An image of the first challenge available at python.dunderdata.com

Video solutions for the Python Challenges will be available here with the Pandas Challenges available here. You’ll answer the challenges within your very own Jupyter...

Continue Reading...

Python Pandas Certification Courses

pandas Mar 22, 2021

I am excited to announce Python Pandas Certification Courses — a series of courses to help you become an expert at using the pandas library to analyze data, each with a challenging certification exam given at the end.

The main goal of the Python Pandas Certification series of courses is to provide you with a path to gain mastery of the pandas library so that you can use it confidently in a professional environment.

First Course FREE — Begins March 29!

The first course in...

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 different moments...

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...
Close

Register for a free account

Upon registration, you'll get access to the following free courses:

  • Python Installation
  • Intro to Jupyter Notebooks
  • Intro to Pandas
  • Python  and Pandas Challenges