Skip to content

Instantly share code, notes, and snippets.

@masayuki038
Created June 17, 2019 15:16
Show Gist options
  • Save masayuki038/b6de40c08be0c88deee07b4e5a1d0f2f to your computer and use it in GitHub Desktop.
Save masayuki038/b6de40c08be0c88deee07b4e5a1d0f2f to your computer and use it in GitHub Desktop.
import time
import pandas as pd
%matplotlib inline
import matplotlib.pyplot as plt
def load_data():
return [{"a": "k1", "b": 2}, {"a": "k2", "b": 4}, {"a": "k3", "b": 5}, {"a": "k1", "b": 15}]
l = load_data()
df = pd.DataFrame(l)
plt.style.use('ggplot')
ret = df.rename(columns={'a': 'Epic', 'b': "Story Point"}).groupby("Epic").sum().plot.pie(subplots=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment