mothers_names_list = []
for id in mothers.from_uniqe_id.unique():
mother_age = mothers[mothers.from_uniqe_id == id].BB
tmp = childs[(childs.from_uniqe_id == id) & ((mother_age - childs.BB) > 10)]
if tmp.shape[0] > 0: # Say if it have min of 1 child
mothers_names_list.append(tmp.from_uniqe_id)
此代码将为您提供满足请求的id的名称。你知道吗
相关问题 更多 >
编程相关推荐