code: def filter_ordered_statistics(ordered_statistics, **kwargs):
      
      min_confidence = kwargs.get('min_confidence', 0.0)
      min_lift = kwargs.get('min_lift', 0.0)
  
      for ordered_statistic in ordered_statistics:
          if ordered_statistic.confidence < min_confidence:
              continue
          if ordered_statistic.lift < min_lift:
              continue
          yield ordered_statistic
docs: Filter OrderedStatistic objects.
  
      Arguments:
          ordered_statistics -- A OrderedStatistic iterable object.
  
      Keyword arguments:
          min_confidence -- The minimum confidence of relations (float).
          min_lift -- The minimum lift of relations (float).