Problem with calling remove_stopwords in def parse_data_from_file

Hi guys,
I wrote my def remove_stopwords

[code removed - moderator]

then in my def parse_data_from_file, I called remove_stopwords (which worked fine on the test case)

[code removed - moderator]

Then the function remove_stopwords does not work on the csv file, it returned the original sentence.
Can somebody please explain for me?
Thank you in advance.

Python is not C/C++.
You should

  1. return sentence from remove_stopwords function
  2. sentence = remove_stopwords(sentence)

Please remove references to code in your post.

Thank you very much for your help. I did not have the second line you mentioned.
It worked perfectly now.