Created
November 30, 2018 15:50
-
-
Save leandrocl2005/0c5b1c620156464eb6462d1b6a1bd7d4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# bibliotecas | |
from sklearn.datasets import load_iris | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# dataset | |
iris = load_iris() | |
# dataset to pandas dataframe | |
df = pd.DataFrame(iris.data,columns=iris.feature_names) | |
df['Species'] = iris.target | |
# show graph | |
sns.pairplot(df, hue='Species', vars=iris.feature_names) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment