item_summary_df columns[ ]:'item_count'}inplace=trueitem_summary_df head( out[ ]item_name item_count whole milk other vegetables rolls/buns soda yogurt for creating the histogramwe will create summary dataframe using the previous code this tells us that we have total of , items occurring in total in all those transactions and we also see the top five most sold items let' use this dataframe to plot the top most sold items the following snippet of code will help us create the required bar graph objects (list(item_summary_df['item_name'head( = ))y_pos np arange(len(objects)performance list(item_summary_df['item_count'head( = )plt bar(y_posperformancealign='center'alpha= plt xticks(y_posobjectsrotation='vertical'plt ylabel('item count'plt title('item sales distribution'the bar graph depicting the item sales is depicted in figure - it indicates that surprisingly large share of total items is claimed by only these items