class_docstr: Test utils.py.
class_docstr_tok: ["Test","utils.py","."]
docstr: Test function _check_dataframe.
docstr_tok: ["Test","function","_check_dataframe","."]
code: def test_check_dataframe(self):
      """Test function _check_dataframe."""
      _check_dataframe(
          dv="Values", between="Group", effects="between", data=df
      )
      _check_dataframe(
          dv="Values",
          within="Time",
          subject="Subject",
          effects="within",
          data=df,
      )
      _check_dataframe(
          dv="Values",
          within="Time",
          subject="Subject",
          between="Group",
          effects="interaction",
          data=df,
      )
      # Wrond and or missing arguments
      with pytest.raises(ValueError):
          _check_dataframe(
              dv="Group", between="Group", effects="between", data=df
          )
      with pytest.raises(ValueError):
          _check_dataframe(
              dv="Values", between="Group", effects="between"
          )
      with pytest.raises(ValueError):
          _check_dataframe(between="Group", effects="between", data=df)
      with pytest.raises(ValueError):
          _check_dataframe(
              dv="Values", between="Group", effects="wrong", data=df
          )
      with pytest.raises(ValueError):
          _check_dataframe(effects="within", dv="Values", data=df)
      with pytest.raises(ValueError):
          _check_dataframe(effects="between", dv="Values", data=df)
      with pytest.raises(ValueError):
          _check_dataframe(
              between="Group",
              effects="interaction",
              dv="Values",
              data=df,
          )
      with pytest.raises(ValueError):
          _check_dataframe(
              dv="Values",
              between="Group",
              within="Time",
              effects="within",
              data=df,
          )
  
file_path: pingouin/pingouin/tests/test_utils.py
imports: import pandas
  import numpy
  import pytest
  import pingouin
  from unittest import TestCase
  from pingouin.utils import print_table, _postprocess_dataframe, _get_round_setting_for, _perm_pval, _check_eftype, _check_dataframe, remove_na, _flatten_list, _is_sklearn_installed, _is_statsmodels_installed, _is_mpmath_installed
label_desc: Use image node_id 8 for calling the TestUtils obj's underlying member method code with example usage: obj.test_check_dataframe() without return types