Reputation: 3799
I am reading a dataframe column having comments. The data is taking forever to read using the code below. Is there a way to make this faster ?
for val in df.Description:
val = str(val)
tokens = val.split()
for i in range(len(tokens)):
tokens[i] = tokens[i].lower()
for words in tokens:
comment = comment + words + ''
df.Description is a column of comments (basically email text)
Upvotes: 0
Views: 193