note that the name "genuson the dataframe' columns is used to title the legend stacked bar plots are created from dataframe by passing stacked=trueresulting in the value in each row being stacked together (see figure - )in [ ]df plot(kind='barh'stacked=truealpha= useful recipe for bar plots (as seen in an earlier is to visualize series' value frequency using value_countss value_counts (plot(kind='bar'returning to the tipping data set used earlier in the booksuppose we wanted to make stacked bar plot showing the percentage of data points for each party size on each day load the data using read_csv and make cross-tabulation by day and party sizein [ ]tips pd read_csv('ch /tips csv'in [ ]party_counts pd crosstab(tips daytips sizein [ ]party_counts out[ ]size day fri sat sun thur plotting and visualization www it-ebooks info