Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df = pd.DataFrame(data={'text':['abc def', 'def ghi', 'poi opo', 'aswwf', 'abcs sd'], 'id':[1, 2, 3, 4, 5]})
- Out [1]:
- text id
- 0 abc def 1
- 1 def ghi 2
- 2 poi opo 3
- 3 aswwf 4
- 4 abcs sd 5
- search = ['abc', 'poi']
- Out [2]:
- text id
- 0 abc def 1
- 1 poi opo 3
- 2 abcs sd 5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement