即购买实体 又购买虚拟的user_id
all_gouwu.query('type=="实体"')[all_gouwu['user_id'].isin(all_gouwu.query('type=="虚拟"')['user_id'])]
只购买实体的user_id
all_gouwu.query('type=="实体"')[~all_gouwu['user_id'].isin(all_gouwu.query('type=="虚拟"')['user_id'])]
all_gouwu.query('type=="实体"')[all_gouwu['user_id'].isin(all_gouwu.query('type=="虚拟"')['user_id'])]
all_gouwu.query('type=="实体"')[~all_gouwu['user_id'].isin(all_gouwu.query('type=="虚拟"')['user_id'])]