from textblob import TextBlob as tb
from sqlalchemy import create_engine
import pandas as pd
first i had created engine using sqlalchemy as engine=create_engine("mysql+mysqldb://root:ja@localhost:3306/listing")
Then i used pandas read_sql command to read the data from database.
df=pd.read_sql('select locationId,text from location_reviews',engine)
I am getting this error when trying to convert the text column from string to textblob UnicodeDecodeError: 'ascii' codec can't decode byte 0x93 in position 284: ordinal not in range(128)
I am using sqlalchemy and df = pd.read_sql(query,engine)
for reading the data from sql.
Then i tried to convert the text column in textblob using
df['text']=df.text.apply(lambda x: tb(x))
and getting the above error.