Contains#

class polpo.preprocessing.str.Contains(item, negate=False)[source]#

Bases: PreprocessingStep

Check if an item is in a collection.

Examples include substring in string, item in list, key in dict.

Parameters:
  • item (object)

  • negate (bool) – Whether to negate predicate.