class_docstr: Unit test for summarize
  TODO: Docstring
class_docstr_tok: ["Unit","test","for","summarize","TODO",":","Docstring"]
docstr: Test compute contributions groups
docstr_tok: ["Test","compute","contributions","groups"]
code: def test_group_contributions_2(self):
      """
      Test compute contributions groups
      """
      column_name = ["col1", "col2", "col3"]
      index_list = ["A", "B", "C"]
      xmatr = pd.DataFrame(
          [[0.1, 0.4, -0.02], [-0.1, 0.2, -0.03], [0.2, -0.8, 0.4]],
          columns=column_name,
          index=index_list,
      )
  
      features_groups = {"group1": ["col1", "col2"], "group2": ["col3"]}
      output = group_contributions(xmatr, features_groups)
      expected = pd.DataFrame(
          [[0.5, -0.02], [0.1, -0.03], [-0.6, 0.4]],
          columns=["group1", "group2"],
          index=index_list,
      )
      assert_frame_equal(output, 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 7 for calling the TestSummarize obj's underlying member method code with example usage: obj.test_group_contributions_2() without return types