Skip to content

Instantly share code, notes, and snippets.

@leandrocl2005
Created November 30, 2018 15:50
Show Gist options
  • Save leandrocl2005/0c5b1c620156464eb6462d1b6a1bd7d4 to your computer and use it in GitHub Desktop.
Save leandrocl2005/0c5b1c620156464eb6462d1b6a1bd7d4 to your computer and use it in GitHub Desktop.
# 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