From e4bdc34c66abb95ea85b873eeece0f1db28d4ea9 Mon Sep 17 00:00:00 2001 From: paragDC Date: Wed, 2 Jan 2019 09:34:30 +0000 Subject: [PATCH 1/4] Done --- q01_plot/build.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/q01_plot/build.py b/q01_plot/build.py index 0425964..d822b8a 100644 --- a/q01_plot/build.py +++ b/q01_plot/build.py @@ -1,8 +1,14 @@ +# %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 4d710f114d6f14c475681be5aeecf01d4e1169ca Mon Sep 17 00:00:00 2001 From: paragDC Date: Wed, 2 Jan 2019 12:51:12 +0000 Subject: [PATCH 2/4] Done --- q02_plot/build.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/q02_plot/build.py b/q02_plot/build.py index 67b4924..f20ff44 100644 --- a/q02_plot/build.py +++ b/q02_plot/build.py @@ -1,11 +1,16 @@ +# %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 83530a893de33a0d7a0e9aa506788a70777fca14 Mon Sep 17 00:00:00 2001 From: paragDC Date: Wed, 2 Jan 2019 12:52:41 +0000 Subject: [PATCH 3/4] Done --- q03_regression_plot/build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/q03_regression_plot/build.py b/q03_regression_plot/build.py index 2aaf8f6..06bbfe2 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,15 @@ 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 40f1f4799cc67f42bfe60defcc5d56d56368059e Mon Sep 17 00:00:00 2001 From: paragDC Date: Wed, 2 Jan 2019 12:57:17 +0000 Subject: [PATCH 4/4] Done --- q04_cor/build.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()) + + + +