Esempio n. 1
0
def test_corr_matrix_save_image1():
    da = DataAnalyst(data)
    da.corr_matrix(features=["a", "b"], display=False)
Esempio n. 2
0
def test_corr_matrix_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.corr_matrix(features=["a", "b"], save_image=True, path="/incorrect")
Esempio n. 3
0
def test_corr_matrix_feature_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.corr_matrix(features=["c"])
Esempio n. 4
0
def test_corr_matrix_feature_error_None():
    da = DataAnalyst(data)
    da.corr_matrix()
Esempio n. 5
0
def test_corr_matrix_feature_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.corr_matrix(features=np.array(["a", "b"]))