parameters: (transactions, threshold)
return_statement: return items
docstring: Create a dictionary of items with occurrences above the threshold.
docstring_summary: Create a dictionary of items with occurrences above the threshold.
docstring_tokens: Create a dictionary of items with occurrences above the threshold .
function: def _find_frequent_items(transactions, threshold):
          """
          Create a dictionary of items with occurrences above the threshold.
          """
          items = {}
          for transaction in transactions:
              for item in transaction:
                  if item in items:
                      items[item] += 1
                  else:
                      items[item] = 1
          for key in list(items.keys()):
              if items[key] < threshold:
                  del items[key]
  
          return items
function_tokens: def _find_frequent_items ( transactions , threshold ) : items = { } for transaction in transactions : for item in transaction : if item in items : items [ item ] += 1 else : items [ item ] = 1 for key in list ( items . keys ( ) ) : if items [ key ] < threshold : del items [ key ] return items