Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created January 26, 2021 08:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/0936ae5b9cca3f3a7d250202e6930844 to your computer and use it in GitHub Desktop.
Save amankharwal/0936ae5b9cca3f3a7d250202e6930844 to your computer and use it in GitHub Desktop.
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