class_docstr: Base class for testing frequent pattern mining on a small example.
class_docstr_tok: ["Base","class","for","testing","frequent","pattern","mining","on","a","small","example","."]
code: def setUp(self):
      database = [["a"], ["b"], ["c", "d"], ["e"]]
      te = TransactionEncoder()
      te_ary = te.fit(database).transform(database)
  
      self.df = pd.DataFrame(te_ary, columns=te.columns_)
  
imports: import sys
  from contextlib import contextmanager
  from io import StringIO
  import numpy
  import pandas
  from numpy.testing import assert_array_equal
  from packaging.version import Version
  from pandas import __version__
  from scipy.sparse import csr_matrix
  from mlxtend.preprocessing import TransactionEncoder
  from mlxtend.utils import assert_raises
label_desc: Use image node_id 1 for calling the FPTestEx2 obj's underlying member method code with example usage: obj.setUp() without return types