コード例 #1
0
def test_sns_jointplot_categoria2_error_not_included():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=["OKNOK"])
コード例 #2
0
def test_boxplot_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col)
コード例 #3
0
def test_boxplot_display_image():
    da = DataAnalyst(data)
    da.boxplot(features=["a", "b"], target=["c"], display=True)
コード例 #4
0
def test_corr_matrix_save_image1():
    da = DataAnalyst(data)
    da.corr_matrix(features=["a", "b"], display=False)
コード例 #5
0
def test_boxplot_feature_error_null():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["d"])
コード例 #6
0
def test_boxplot_features_error_object():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=["c"], target=["a"])
コード例 #7
0
def test_corr_matrix_feature_error_None():
    da = DataAnalyst(data)
    da.corr_matrix()
コード例 #8
0
def test_sns_pairplot_target_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.sns_pairplot(features=["a"], target=np.array(col))
コード例 #9
0
def test_sns_pairplot_target_error_null2():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_pairplot(features=col, target=[])
コード例 #10
0
def test_sns_jointplot_test1():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"])
コード例 #11
0
def test_boxplot_features_error_empty():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=[])
コード例 #12
0
def test_sns_jointplot_display():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=["NOK"], display=True)
コード例 #13
0
def test_sns_jointplot_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=["NOK"], save_image=True, path="/invalid")
コード例 #14
0
def test_sns_jointplot_categoria2_noerror_None():
    da = DataAnalyst(data)
    da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=None)
コード例 #15
0
def test_distribution_targets_save_image1():
    da = DataAnalyst(data)
    da.distribution_targets(target=["c"], display=False)
コード例 #16
0
def test_sns_pairplot_save_image():
    da = DataAnalyst(data)
    da.sns_pairplot(features=["a", "b"], target=["c"], display=True)
コード例 #17
0
def test_corr_matrix_feature_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.corr_matrix(features=np.array(["a", "b"]))
コード例 #18
0
def test_sns_pairplot_save_image1():
    da = DataAnalyst(data)
    da.sns_pairplot(target=["c"], display=True)
コード例 #19
0
def test_corr_matrix_feature_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.corr_matrix(features=["c"])
コード例 #20
0
def test_boxplot_features_error_not_included():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=["d"])
コード例 #21
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")
コード例 #22
0
def test_distribution_targets_target_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.distribution_targets(target=np.array(col))
コード例 #23
0
def test_boxplot_feature_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.boxplot(features=["a"], target=np.array(col))
コード例 #24
0
def test_distribution_targets_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets(target=["a", "b"])
コード例 #25
0
def test_boxplot_target_error_only():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["a", "b"])
コード例 #26
0
def test_distribution_targets_target_error_None():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets()
コード例 #27
0
def test_boxplot_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.boxplot(features=col, target=["c"], save_image=True, path="/invalid")
コード例 #28
0
def test_distribution_targets_incorrect_path():
    da = DataAnalyst(data)
    with pytest.raises(NameError):
        da.distribution_targets(target=["c"], save_image=True, path="/incorrect")
コード例 #29
0
def test_boxplot_features_none():
    da = DataAnalyst(data)
    da.boxplot(target=["c"], display=True)
コード例 #30
0
def test_sns_jointplot_categoria2_error_type():
    da = DataAnalyst(data)
    with pytest.raises(TypeError):
        da.sns_jointplot(feature1=["a"], feature2=["b"], target=["c"], categoria1=["OK"], categoria2=np.array(["OK"]))