I think I have a relatively simply question but am not able to locate an appropriate answer to solve the coding problem.
I have a pandas column of string:
df1['tweet'].head(1)
0 besides food,
Name: tweet
I need to extract the text and push it into a Python str object, of this format:
test_messages = ["line1",
"line2",
"etc"]
The goal is to classify a test set of tweets and therefore believe the input to: X_test = tfidf.transform(test_messages)
is a str object.