Exemple #1
0
def test_boxplot_features_none():
    da = DataAnalyst(data)
    da.boxplot(target=["c"], display=True)
Exemple #2
0
def test_boxplot_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["c"], save_image=True, path="/invalid")
Exemple #3
0
def test_boxplot_display_image():
    da = DataAnalyst(data)
    da.boxplot(features=["a", "b"], target=["c"], display=True)
Exemple #4
0
def test_boxplot_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["a", "b"])
Exemple #5
0
def test_boxplot_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col)
Exemple #6
0
def test_boxplot_feature_error_null():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["d"])
Exemple #7
0
def test_boxplot_feature_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.boxplot(features=["a"], target=np.array(col))
Exemple #8
0
def test_boxplot_features_error_object():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=["c"], target=["a"])
Exemple #9
0
def test_boxplot_features_error_not_included():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=["d"])
Exemple #10
0
def test_boxplot_features_error_empty():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=[])