-
-
Save amankharwal/0936ae5b9cca3f3a7d250202e6930844 to your computer and use it in GitHub Desktop.
This file contains 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
def PlotData(features): | |
plt.figure(figsize= (20, 10)) | |
pltNum = 1 | |
for mem in features: | |
plt.subplot(1, 2 , pltNum) | |
plt.style.use('seaborn-whitegrid') | |
plt.grid(True) | |
plt.title('Regplot Plot for '+ str(mem)) | |
sns.regplot(data = data, x = mem, y = 'Likes' , color = 'green') | |
pltNum += 1 | |
plt.show() | |
PlotData(['Followers', 'Time since posted']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment