Esempio n. 1
0
def test_distribution_targets_save_image1():
    da = DataAnalyst(data)
    da.distribution_targets(target=["c"], display=False)
Esempio n. 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")
Esempio n. 3
0
def test_distribution_targets_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets(target=["a", "b"])
Esempio n. 4
0
def test_distribution_targets_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets()
Esempio n. 5
0
def test_distribution_targets_target_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.distribution_targets(target=np.array(col))