Beispiel #1
0
def test_distribution_targets_save_image1():
    da = DataAnalyst(data)
    da.distribution_targets(target=["c"], display=False)
Beispiel #2
0
def test_distribution_targets_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets(target=["c"], save_image=True, path="/incorrect")
Beispiel #3
0
def test_distribution_targets_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets(target=["a", "b"])
Beispiel #4
0
def test_distribution_targets_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets()
Beispiel #5
0
def test_distribution_targets_target_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.distribution_targets(target=np.array(col))