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