class_docstr: Container that doesn't allow setting item *but*
  because it's technically non-hashable, will be used
  for lookups, appropriately, etc.
class_docstr_tok: ["Container","that","does","n't","allow","setting","item","*","but","*","because","it","'s","technically","non-hashable",",","will","be","used","for","lookups",",","appropriately",",","etc","."]
docstr: Returns a FrozenList with elements from other removed from self.
  
  Parameters
  ----------
  other : array-like
      The array-like whose elements we are removing self.
  
  Returns
  -------
  diff : FrozenList
      The collection difference between self and other.
docstr_tok: ["Returns","a","FrozenList","with","elements","from","other","removed","from","self",".","Parameters","--","--","--","--","--","other",":","array-like","The","array-like","whose","elements","we","are","removing","self",".","Returns","--","--","--","-","diff",":","FrozenList","The","collection","difference","between","self","and","other","."]
code: def difference(self, other):
      """
      Returns a FrozenList with elements from other removed from self.
  
      Parameters
      ----------
      other : array-like
          The array-like whose elements we are removing self.
  
      Returns
      -------
      diff : FrozenList
          The collection difference between self and other.
      """
      other = set(other)
      temp = [x for x in self if x not in other]
      return type(self)(temp)
  
imports: import warnings
  import numpy
  from pandas.util._decorators import deprecate_kwarg
  from pandas.core.dtypes.cast import coerce_indexer_dtype
  from pandas.core.base import PandasObject
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 2 for calling the FrozenList obj's underlying member method code with example usage: obj.difference(other) and returns: type