Skip to content

Instantly share code, notes, and snippets.

@douglaspsteen
Created September 5, 2020 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglaspsteen/34fcf597d26b2b1e1d30ce447678682f to your computer and use it in GitHub Desktop.
Save douglaspsteen/34fcf597d26b2b1e1d30ce447678682f to your computer and use it in GitHub Desktop.
# 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