Filtering on multiple columns and creating a new column

前端 未结 0 988
一整个雨季
一整个雨季 2021-01-14 18:13

I have a dataset with millions of rows and I am wondering if there\'s faster way to do the computation below.

df.loc[(df.A>0) & (df.B>0),\'C\']=\'bo         


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