Lambda including if…elif…else

后端 未结 3 2018
清歌不尽
清歌不尽 2020-11-28 20:29

I want to apply a lambda function to a DataFrame column using if...elif...else within the lambda function.

The df and the code are smth. like:

df=pd.         


        
3条回答
提交回复
热议问题