Skip to main content

Creating Waffle Charts for fun

Excel can creat the Waffle Charts, Python also can do it. 

but you have to the EXCEL 365, it would be easy, LOL. MS, Dman it.

you can refer to Sort, SEQUENCE Function.

Python makes it easy. In the pycharm, copy this a Code: 

import pandas as pd
import matplotlib.pyplot as plt
from pywaffle import Waffle

df = pd.DataFrame({
'crime_type': ['felony', 'misdemeanor', 'violation'],
'number_of_cases': [94, 5, 1]

fig = plt.figure(
#figsize=(10, 150)

that works!! 

Waffle Chart by Python



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.