I'm a student and new here.Im trying to do text analysis for my project. So I'm trying to copy this row of data to another dataframe when this word appear in this sentence.
*df1*
ID Text
1 This apple is delicious and I like this apple a lot.
2 This orange is nice and sweet.
3 This apple is too sweet and I dislike this kind of apple.
4 This apple is worth the price, definitely will purchase it again from this store.
As you can see in ID 1, 3 and 4. The word "apple" appears twice except ID 4 appears once.
My objective is no matter how many times did the same word appear once or more than once, it will copy that row of data to another dataframe.
Result that I want
*df2*
ID Text
1 This apple is delicious and I like this apple a lot.
2 This apple is too sweet and I dislike this kind of apple.
3 This apple is worth the price, definitely will purchase it again from this store.
If possible, please teach me how to remove "ID" column and the column header "Text". As this is Text Analysis , I don't need ID column and I'm not sure the column header will affect my analysis.
Thanks alot!