📜  分类值数据帧的潜水拆分 - Python 代码示例

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

代码示例1
df1=credit5[credit5['card']=='yes'] #gets the subset of the df where all 'card' entries are yes

df2=credit5[credit5['card']=='no'] #gets the subset of the df where all 'card' entries are no