import matplotlib.pyplot as plt
import pandas as pd
#Please adjust to your file
df=pd.read_excel("/Users/davidmika/Desktop/First.xlsx","Sheet1")
#Group variables by Gender
var=df.groupby(['Gender']).sum().stack()
temp=var.unstack()
type(temp)
x_list = temp['Sales']
label_list = temp.index
#The pie chart is oval by default; the next line makes it a circle
plt.axis("equal")
plt.pie(x_list,labels=label_list,autopct="%1.1f%%")
#Adjust title here
plt.title("Pastafarianism expenses")
#Show pie chart
plt.show()