From 4d7ccb6b9bacf0d772077d906d2052d8aa2f0fb4 Mon Sep 17 00:00:00 2001 From: y0ge5h Date: Sun, 28 Oct 2018 06:31:24 +0000 Subject: [PATCH 1/5] Done --- q01_plot/build.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/q01_plot/build.py b/q01_plot/build.py index 0425964..0496814 100644 --- a/q01_plot/build.py +++ b/q01_plot/build.py @@ -1,8 +1,15 @@ +# %load q01_plot/build.py +# Default imports import matplotlib.pyplot as plt import seaborn as sns import pandas as pd data = pd.read_csv('data/house_prices_multivariate.csv') -plt.switch_backend('agg') -# Write your code here : +# Write your code here: +def plot(num_cols): + print(sns) + + + + From 0d56902b7f472400009f19dcd368c025064060ed Mon Sep 17 00:00:00 2001 From: y0ge5h Date: Sun, 28 Oct 2018 06:34:33 +0000 Subject: [PATCH 2/5] Done --- q02_plot/build.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/q02_plot/build.py b/q02_plot/build.py index 67b4924..2ccd603 100644 --- a/q02_plot/build.py +++ b/q02_plot/build.py @@ -1,11 +1,15 @@ +# %load q02_plot/build.py # Default imports import pandas as pd import matplotlib.pyplot as plt import seaborn as sns data = pd.read_csv('data/house_prices_multivariate.csv') -plt.switch_backend('agg') # Write your code here: +def plot (num_cols): + print(sns) + + From 42432619fb5ce06415d781a2c0a640abf8d37606 Mon Sep 17 00:00:00 2001 From: y0ge5h Date: Sun, 28 Oct 2018 06:38:16 +0000 Subject: [PATCH 3/5] Done --- q03_regression_plot/build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/q03_regression_plot/build.py b/q03_regression_plot/build.py index 2aaf8f6..a22b6d8 100644 --- a/q03_regression_plot/build.py +++ b/q03_regression_plot/build.py @@ -1,3 +1,4 @@ +# %load q03_regression_plot/build.py # Default imports import pandas as pd @@ -6,10 +7,14 @@ data = pd.read_csv('data/house_prices_multivariate.csv') -plt.switch_backend('agg') # Write your code here +def regression_plot(variable1,variable2): + x = df[variable1] + y = df[variable2] + print(x,y) + From b0e1db42d11726711be09f8bb1823612fd9b892b Mon Sep 17 00:00:00 2001 From: y0ge5h Date: Sun, 28 Oct 2018 06:41:16 +0000 Subject: [PATCH 4/5] Done --- .results.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 .results.json diff --git a/.results.json b/.results.json new file mode 100644 index 0000000..ec81fdc --- /dev/null +++ b/.results.json @@ -0,0 +1 @@ +{"stats": {"errors": 0, "failures": 0, "passes": 2, "skipped": 0, "encoding": "UTF-8", "total": 2}, "results": [{"classname": "eda_project.q03_regression_plot.tests.test_q03_regression_plot:TestLoad_regression_plot", "name": "test_regression_plot_arguments", "time": 0.00020003318786621094, "type": "success"}, {"classname": "eda_project.q03_regression_plot.tests.test_q03_regression_plot:TestLoad_regression_plot", "name": "test_regression_plot_defaults", "time": 0.0004773139953613281, "type": "success"}]} \ No newline at end of file From 22dcc58eefdd0aae263f228c6405adf8ae4ece53 Mon Sep 17 00:00:00 2001 From: y0ge5h Date: Sun, 28 Oct 2018 06:58:11 +0000 Subject: [PATCH 5/5] Done --- .results.json | 1 - q04_cor/build.py | 8 +++++++- 2 files changed, 7 insertions(+), 2 deletions(-) delete mode 100644 .results.json diff --git a/.results.json b/.results.json deleted file mode 100644 index ec81fdc..0000000 --- a/.results.json +++ /dev/null @@ -1 +0,0 @@ -{"stats": {"errors": 0, "failures": 0, "passes": 2, "skipped": 0, "encoding": "UTF-8", "total": 2}, "results": [{"classname": "eda_project.q03_regression_plot.tests.test_q03_regression_plot:TestLoad_regression_plot", "name": "test_regression_plot_arguments", "time": 0.00020003318786621094, "type": "success"}, {"classname": "eda_project.q03_regression_plot.tests.test_q03_regression_plot:TestLoad_regression_plot", "name": "test_regression_plot_defaults", "time": 0.0004773139953613281, "type": "success"}]} \ No newline at end of file diff --git a/q04_cor/build.py b/q04_cor/build.py index f3fae50..b4e14ea 100644 --- a/q04_cor/build.py +++ b/q04_cor/build.py @@ -1,10 +1,16 @@ +# %load q04_cor/build.py # Default imports import pandas as pd import matplotlib.pyplot as plt import seaborn as sns data = pd.read_csv('data/house_prices_multivariate.csv') -plt.switch_backend('agg') # Write your code here +def cor(data): + print(data.corr()) + + + +