Search code examples
pythonstringtextnlplowercase

Issues converting text to lower case even after making sure it is a string


I'm struggling to convert my text to lower case even after making sure it is a string. I'm not sure why it says that it's a "series" object when I clearly converted it to a string and even checked that it was converted to string.


Solution

  • Use this

    corpus = data['text'].str.lower()