📌  相关文章
📜  # 为特征和响应变量创建数组 y = df['party'].values X = df.drop('party', axis=1).values - Python 代码示例

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

代码示例1
# Create arrays for the features and the response variable
y = df['party'].values
X = df.drop('party', axis=1).values