📜  如何将数据集转换为 pandas 数据帧 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.557000             🧑  作者: 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()