I have this table
text value ------------------------||------|| ahmad want cake 1 ali want fruit 2 abu need to go 10 yusof driving now 2
Now I only want the dataframe (df) with cake and now only.
text value ------------------------||------|| ahmad want cake 1 yusof driving now 2
I already tried using this code :
dfkeyword = df[df.text.str.contains("cake" or "now")]
but it's not give result as I want.
How can I do that?