Python-pandas: the truth value of a series is ambiguous error

前端 未结 0 787
陌清茗
陌清茗 2021-01-17 18:25

in pandas_dataframe, I try to convert numerical value to categorical value

df[\'SalePrice_band\']=0
df.loc[df[\'SalePrice\']<50000 , \'SalesPrice_band\']=1         


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