support num_trans input_assoc_rules shape[ ]*support itemsets dict(frequent_itemsets(data_tran_uk_ensupport)confidence rules_df pd dataframe(rest of the code similar to what we did earlier the rest of the analysis can be performed using the same workflow which we used for the groceries dataset feel free to check out the cross selling ipynb notebook in case you get stuck figure - shows some patterns from the previous analysis on our online retail dataset figure - association rules on the online retail dataset for uk customers it is quite evident from the metrics in figure - that these are excellent quality rules we can see that items relevant to baking are purchased together and items like bags are purchased together try changing the previously mentioned parameters and see if you can find more interesting patternssummary in this we read about some simple yet high-value case studies the crux of the was to realize that the most important part about any analytics or machine learning-based solution is the value it can deliver to the organization being an analytics or data science professionalwe must always try to balance the value aspect of our work with its technical complexity we learned some important methods that have the potential to directly contribute to the revenue generation of organizations and retail establishments we looked at ideas pertaining to customer segmentationits impactand explored novel way of using unsupervised learning to find out customer segments and view interesting patterns and behavior cross selling introduced us to the world of pattern-mining and rule-based frameworks like association rulemining and principles like market basket analysis we utilized framework that was entirely different from the ones that we have used until now and understood the value of data parsing and pre-processing besides regular modeling and analysis in subsequent of this bookwe increase the technical complexity of our case studiesbut we urge you to always have an eye out for defining the value and impact of these solutions stay tuned