If value in column A is not null then insert specific string in column B. Python / Pandas

后端 未结 0 1315
清酒与你
清酒与你 2020-12-09 03:27

I have a df and I want to insert a specific string (in this case "foo_bar") in column B when column A is NULL.

A    B
foo  bar
foo  foo
NaN  NaN             


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题