Skip to content

Instantly share code, notes, and snippets.

@karpanGit
Last active November 2, 2019 08:12
Show Gist options
  • Save karpanGit/c2708c09c71f066d3653531d9918e0c5 to your computer and use it in GitHub Desktop.
Save karpanGit/c2708c09c71f066d3653531d9918e0c5 to your computer and use it in GitHub Desktop.
regression/scatter plot in seaborn
# regression/scatter plot in seaborn
import numpy as np
import seaborn as sns
import pandas as pd
df = pd.DataFrame(np.random.randn(100,2),columns=['a','b'])
df['b'] = df['a'] + df['b']/2.
sns.regplot(x='a', y='b', data = df)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment