🌈 搜索
📅  最后修改于: 2022-03-11 14:46:49.394000             🧑  作者: Mango
df['c'] = np.select( [ (df['a'].isnull() & (df['b'] == 0)) ], [ 1 ], default=0 )