python - TypeError: 'dict_items' object is not subscriptable ...
stackoverflow.com › questions › 52389905Sep 18, 2018 · After running the if statement to select items having minimum support value of 0.15 and confidence of 0.6, I am getting an error below that dict_items object is not subscriptable. for key, value in largeSet.items () [1:]: TypeError: 'dict_items' object is not subscriptable def runApriori (data_iter, minSupport, minConfidence): """ run the apriori algorithm. data_iter is a record iterator Return both: - items (tuple, support) - rules ( (pretuple, posttuple), confidence) """ itemSet, ...