📜  加载数据集 X = pd.DataFrame(data.data, columns=data.features) - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:08.743000             🧑  作者: Mango

代码示例1
from sklearn.datasets import load_iris
import pandas as pd

data = load_iris()
df = pd.DataFrame(data.data, columns=data.feature_names)
df.head()