Example #1
0
def test_dispersion_categoria_save_image():
    da = DataAnalyst(data)
    da.dispersion_categoria(features=["a", "b"], target=["c"], display=True)
Example #2
0
def test_dispersion_categoria_save_image1():
    da = DataAnalyst(data)
    da.dispersion_categoria(target=["c"], display=True)
Example #3
0
def test_dispersion_categoria_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.dispersion_categoria(features=col)
Example #4
0
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")
Example #5
0
def test_dispersion_categoria_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.dispersion_categoria(features=col, target=["a", "b"])
Example #6
0
def test_dispersion_categoria_target_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.dispersion_categoria(features=["a"], target=np.array(col))
Example #7
0
def test_dispersion_categoria_features_error_object():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.dispersion_categoria(features=["c"], target=["a"])
Example #8
0
def test_dispersion_categoria_features_error_not_included():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.dispersion_categoria(features=["d"])
Example #9
0
def test_dispersion_categoria_features_error_empty():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.dispersion_categoria(features=[])