📜  等效时的熊猫列大小写 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:49.394000             🧑  作者: Mango

代码示例1
df['c'] = np.select(
[
    (df['a'].isnull() & (df['b'] == 0))
], 
[
    1
], 
default=0 )