Skip to content Skip to sidebar Skip to footer

Python 2.7 And Textblob - Typeerror: The `text` Argument Passed To `__init__(text)` Must Be A String, Not

Update: Issue resolved. (see comment section below.) Ultimately, the following two lines were required to transform my .csv to unicode and utilize TextBlob: row = [cell.decode('u

Solution 1:

So maybe you can make change as below:

row = str([cell.encode('utf-8') for cell in row])

Post a Comment for "Python 2.7 And Textblob - Typeerror: The `text` Argument Passed To `__init__(text)` Must Be A String, Not "