Last active
November 2, 2019 08:12
-
-
Save karpanGit/c2708c09c71f066d3653531d9918e0c5 to your computer and use it in GitHub Desktop.
regression/scatter plot in seaborn
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
# 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