class_docstr: Test contingency.py.
docstr: Test function dichotomous_crosstab.
code: def test_dichotomous_crosstab(self):
      """Test function dichotomous_crosstab."""
      # Integer
      d1 = pg.dichotomous_crosstab(data_ct, "A", "B")
      d2 = pg.dichotomous_crosstab(data_ct, "A", "D")
      assert d1.equals(d2)
      pg.dichotomous_crosstab(data_ct, "A", "E")
      pg.dichotomous_crosstab(data_ct, "E", "A")
      with pytest.raises(ValueError):
          pg.dichotomous_crosstab(data_ct, "E", "E")
  
file_path: pingouin/pingouin/tests/test_contingency.py
imports: import pytest
  import numpy
  import pandas
  import pingouin
  from unittest import TestCase
  from scipy.stats import chi2_contingency
label_desc: Use image node_id 4 for calling the TestContingency obj's underlying member method code with example usage: obj.test_dichotomous_crosstab() without return types