Created
June 14, 2017 06:44
-
-
Save jamesrajendran/37df728cbf9eeac558647fc993559c50 to your computer and use it in GitHub Desktop.
ML - PairPlot - using Advertisement data using Jupyter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import seaborn as sns | |
data = pd.read_csv('C:\work\ML\Advertising.csv', index_col= 0) | |
print(data.head()) | |
%matplotlib inline | |
#sns.pairplot (data, x_vars=['TV','Radio','Newspaper'], y_vars='Sales') | |
#feature_cols =['TV','Radio','Newspaper'] | |
#print(feature_cols) | |
X = data[['TV','Radio','Newspaper']] | |
y = data['Sales'] | |
X.shape | |
#print(X.shape) | |
#print(y.shape) | |
#print(X) | |
sns.pairplot (data, x_vars=['TV','Radio','Newspaper'], y_vars='Sales') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment