Extract with np. where

前端 未结 0 1000
野趣味
野趣味 2021-02-13 06:16

Why can\'t you do complex functions with np where?

This leads to succesful replacement:

df[\'helper_column\'] = df.column2.str.extract(\'([a-zA-Z ]+)\')
df         


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