Skip to content

Instantly share code, notes, and snippets.

@animesh-agarwal
Created October 1, 2018 13:28
Show Gist options
  • Save animesh-agarwal/1656e6bb5d6f91484d2d92a23cb86dad to your computer and use it in GitHub Desktop.
Save animesh-agarwal/1656e6bb5d6f91484d2d92a23cb86dad to your computer and use it in GitHub Desktop.
plt.figure(figsize=(20, 5))
features = ['LSTAT', 'RM']
target = boston['MEDV']
for i, col in enumerate(features):
plt.subplot(1, len(features) , i+1)
x = boston[col]
y = target
plt.scatter(x, y, marker='o')
plt.title(col)
plt.xlabel(col)
plt.ylabel('MEDV')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment