Hello, I am trying to extract the data from the csv file for this week’s assignment but I have trouble implementing my remove_stopwords function. My remove_stopwords works well in the test cell however I get ‘list’ object has no attribute ‘lower’ error when trying to applying to my dataset.
I think I understand the error but I was wondering if it was something I had to fix in my remove_stopwords function or in the parse_data_from_file one.
Thanks in advance for your help!
Thank you for your help, however I wrote my remove_stopwords function again checking step by step that I was doing what your steps suggest but I end up with the same error message when trying to use it in my parse_data_from_file function.
You should invoke remove_stopwords
with a string as an argument.
This I understood but I didn’t understand in which function I had to make a change. From your first answer I understand that it should be in the remove_stopwords one, however the line that triggers the error comes before the ### Start code here line which makes me confused.