标签:string ack 输出 mat NPU htm The result --
df.where将series中不满足cond的那些值替换为other
df.mask()结果与where()相反
0 5000 1 2500 2 2400 3 5000 4 3000 5 5000 6 5000 7 3000 8 5000 9 5000 Name: loan_amnt, dtype: int64
0 5000 1 5000 2 5000 3 10000 4 5000 5 5000 6 7000 7 5000 8 5600 9 5375 Name: loan_amnt, dtype: int64
df.were(),df.mask()
原文地址:https://www.cnblogs.com/liyun1/p/11375108.html