Example #1
0
def test_boxplot_features_none():
    da = DataAnalyst(data)
    da.boxplot(target=["c"], display=True)
Example #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")
Example #3
0
def test_boxplot_display_image():
    da = DataAnalyst(data)
    da.boxplot(features=["a", "b"], target=["c"], display=True)
Example #4
0
def test_boxplot_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["a", "b"])
Example #5
0
def test_boxplot_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col)
Example #6
0
def test_boxplot_feature_error_null():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["d"])
Example #7
0
def test_boxplot_feature_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.boxplot(features=["a"], target=np.array(col))
Example #8
0
def test_boxplot_features_error_object():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=["c"], target=["a"])
Example #9
0
def test_boxplot_features_error_not_included():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=["d"])
Example #10
0
def test_boxplot_features_error_empty():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=[])