본문 바로가기
python

load iris dataframe for sample data

by 타닥타닥 토다토닥 부부 2023. 8. 9.
반응형

load iris dataframe for sample data

click for data detaill

import pandas as pd
from sklearn.datasets import load_iris
iris = load_iris()
df = pd.DataFrame(iris.data, columns=iris.feature_names)
df['class'] = iris.target

df.tail()

 

반응형

댓글