How rotate a Data Frame bar plot in pandas?

Viewed 541

I found this plot and i would like to rotate it. My goal is to have the bars in the vertical axis. SIMILAR to the 2nd one plot.

plot = pd.DataFrame(data.groupby(['LIFESTAGE', 'PREMIUM_CUSTOMER']).TOT_SALES.sum()) 

plot.unstack().plot(kind = 'bar', stacked = True, figsize = (12, 7), title = 'Total Sales by Customer Segment')

enter image description here

enter image description here

1 Answers
Related