I am trying to read a text file in jupyter notebook and fetch the unique words in the file.
I am reading that file as a list and then trying to apply lower case on it. But the .lower()
function doesn't work with a list. Please help with the same.
I am trying to read a text file in jupyter notebook and fetch the unique words in the file.
I am reading that file as a list and then trying to apply lower case on it. But the .lower()
function doesn't work with a list. Please help with the same.
With a list of values in val you can do this:
valsLower = [item.lower() for item in vals]