Skip to content

Instantly share code, notes, and snippets.

@douglaspsteen
Created Sep 5, 2020
Embed
What would you like to do?
# Load iris data and store in dataframe
from sklearn import datasets
iris = datasets.load_iris()
df = pd.DataFrame(data=iris.data, columns=iris.feature_names)
df['target'] = iris.target
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment