Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
import warnings
warnings.filterwarnings('ignore')
import pandas as pd
# Converting Text data to Lowercase
text = [
'This is introduction to NLP',
'It is likely to be useful, to people',
'Machine learning is the new electricity',
'There would be less hype around AI and more action going forward',
'python is the best tool!',
'R is good language',
'I like this book',
'I want more books like this'
]
df = pd.DataFrame({'tweet':text})
df
# lower()
x = 'Darshan'
x1 = x.lower()
print(x1)
darshan
df['tweet'][0].split()
['This', 'is', 'introduction', 'to', 'NLP']
for i in df['tweet'][0].split():
print(i.lower())
this
is
introduction
to
nlp