code: def test_issue_131():
      """
  
      https://github.com/MaxHalford/prince/issues/131#issuecomment-1591426031
  
      >>> df = pd.DataFrame({
      ...     "foo": [1, 2, 3, 3, 5],
      ...     "bar": ["a", "b", "c", "b", "e"],
      ... })
      >>> mca = prince.MCA(engine="scipy")
      >>> mca = mca.fit(df)
      >>> mca.transform(df).round(2).abs().sort_index(axis='columns')
           0     1
      0  2.0  0.00
      1  0.5  0.65
      2  0.5  0.65
      3  0.5  0.65
      4  0.5  1.94
  
      >>> mca.K_, mca.J_
      (2, 8)
  
      """
  
file_path: prince/tests/test_mca.py
imports: from __future__ import annotations
  import tempfile
  import numpy
  import pandas
  import pytest
  from rpy2.robjects import r
  import prince
  from tests import load_df_from_R
  from tests.test_ca import TestCA
label_desc: Use image node_id 2 for calling a global function with example usage: test_issue_131() without return types