figure - grocery dataset top items based on sales let' also find out how much percentage of total sales is explained by these items alone we will use the cumulative sum function offered by pandas (cumsumto find this out we will create two columns in our dataframe one will tell how much percentage of total sales can be attributed to particular item and the other will keep cumulative sum of this sales percentage item_summary_df['item_perc'item_summary_df['item_count']/total_item_count item_summary_df['total_perc'item_summary_df item_perc cumsum(item_summary_df head( item_name item_count item_perc total_perc whole milk other vegetables rolls/buns soda yogurt in [ ]item_summary_df[item_summary_df total_perc < shape out[ ](