📅  最后修改于: 2022-03-11 14:46:57.626000             🧑  作者: Mango
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