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