I am having difficulties to extract some elements from a dataset. I imported the .csv file in Mathematica using the following line of code:
emails = Import[
"/Users/Desktop/Spam/email.csv", { "Dataset", All}]
and it looks like
Then I tried to select only the texts with spam equals 1 using this line
spamEmail = emails[Select[spam = 1 &], "text"]
but it is not working. What I would like to do is to select from the dataset only the emails/text with spam=1 and count the words using WordCounts and see their frequency using WordCloud.
Could you please give me suggestions on how to select only those elements? Thanks

spam == 1. – Rohit Namjoshi Jul 15 '19 at 01:13