def test_dispersion_categoria_save_image(): da = DataAnalyst(data) da.dispersion_categoria(features=["a", "b"], target=["c"], display=True)
def test_dispersion_categoria_save_image1(): da = DataAnalyst(data) da.dispersion_categoria(target=["c"], display=True)
def test_dispersion_categoria_target_error_None(): da = DataAnalyst(data) with pytest.raises(NameError): da.dispersion_categoria(features=col)
def test_dispersion_categoria_incorrect_path(): da = DataAnalyst(data) with pytest.raises(NameError): da.dispersion_categoria(features=col, target=["c"], save_image=True, path="/incorrect")
def test_dispersion_categoria_target_error_only(): da = DataAnalyst(data) with pytest.raises(NameError): da.dispersion_categoria(features=col, target=["a", "b"])
def test_dispersion_categoria_target_error_type(): da = DataAnalyst(data) with pytest.raises(TypeError): da.dispersion_categoria(features=["a"], target=np.array(col))
def test_dispersion_categoria_features_error_object(): da = DataAnalyst(data) with pytest.raises(NameError): da.dispersion_categoria(features=["c"], target=["a"])
def test_dispersion_categoria_features_error_not_included(): da = DataAnalyst(data) with pytest.raises(NameError): da.dispersion_categoria(features=["d"])
def test_dispersion_categoria_features_error_empty(): da = DataAnalyst(data) with pytest.raises(NameError): da.dispersion_categoria(features=[])