Skip to content
Snippets Groups Projects
Commit 233b81cb authored by shawk masboob's avatar shawk masboob
Browse files

made changes to test_Prediction

parent 5a63479a
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,6 @@ import pandas as pd ...@@ -3,7 +3,6 @@ import pandas as pd
from unittest.mock import patch, Mock from unittest.mock import patch, Mock
# Does the function know
def test_numpy_to_pandas(): def test_numpy_to_pandas():
from sklearn.datasets import fetch_california_housing from sklearn.datasets import fetch_california_housing
cal_housing = fetch_california_housing() cal_housing = fetch_california_housing()
...@@ -20,9 +19,9 @@ def test_accuracy_metrics2(): ...@@ -20,9 +19,9 @@ def test_accuracy_metrics2():
values = tdap.accuracy_metrics({}, None) values = tdap.accuracy_metrics({}, None)
assert values == None assert values == None
return return
def test_descriptive_statistic(): def test_descriptive_statistic():
values = tdap.descriptive_statistic(df, 5) data = pd.DataFrame({'a':[1,2,3,4,5]})
df = pd.DataFrame({'a':[1,2,3,4,5]}) values = tdap.descriptive_statistic(data, 5)
assert values == df.shape assert values == 5
return return
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment