class_docstr: Test contingency.py.
docstr: Test function _dichotomize_series.
code: def test_dichotomize_series(self):
      """Test function _dichotomize_series."""
      # Integer
      a = pg.contingency._dichotomize_series(data_ct, "A").to_numpy()
      b = pg.contingency._dichotomize_series(data_ct, "B").to_numpy()
      d = pg.contingency._dichotomize_series(data_ct, "D").to_numpy()
      np.testing.assert_array_equal(a, b)
      np.testing.assert_array_equal(b, d)
      with pytest.raises(ValueError):
          pg.contingency._dichotomize_series(data_ct, "C")
  
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 3 for calling the TestContingency obj's underlying member method code with example usage: obj.test_dichotomize_series() without return types