class_docstr: Unit test for summarize
  TODO: Docstring
class_docstr_tok: ["Unit","test","for","summarize","TODO",":","Docstring"]
docstr: Test summarize el 2
docstr_tok: ["Test","summarize","el","2"]
code: def test_summarize_el_2(self):
      """
      Test summarize el 2
      """
      column_name = ["col1", "col2", "col3"]
      xmatr = pd.DataFrame(
          [
              [0.1, 0.43, -0.02],
              [-0.78, 0.002, -0.3],
              [0.62, -0.008, 0.4],
          ],
          columns=column_name,
      )
      masktest = pd.DataFrame(
          [
              [True, False, False],
              [False, True, False],
              [False, False, True],
          ],
          columns=column_name,
      )
      output = summarize_el(xmatr, masktest, "feat")
      expected = pd.DataFrame(
          [[0.1], [0.002], [0.4]], columns=["feat1"], dtype=object
      )
      assert xmatr.shape[0] == output.shape[0]
      assert output.equals(expected)
  
file_path: shapash/tests/unit_tests/manipulation/test_summarize.py
imports: import unittest
  import pandas
  from pandas.testing import assert_frame_equal
  import numpy
  from shapash.manipulation.summarize import summarize_el, compute_features_import, group_contributions
label_desc: Use image node_id 2 for calling the TestSummarize obj's underlying member method code with example usage: obj.test_summarize_el_2() without return types