Q. With Market Basket Analysis, how can I extract rules among categories of items, instead of among individual items? Do I have to preprocess the data so that the categories that appear in a basket are unique?
A. Duplicated items in a basket are handled internally, so that you don’t need to make them unique beforehand. To extract rules among item categories, you can just specify the column for the category instead of the column for individual item names.