Searching for words using str.contains and regex in dataframe is slow, is there a better way?

前端 未结 0 1788
有刺的猬
有刺的猬 2021-01-27 21:07

I have a datbase with over 2 million rows. I\'m trying to find rows that contain both of two words using regex like:

df1 = df[df[\'my_column\'].str.contains(r\'(?         


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