Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Create
data_tweet = DbConnect("SELECT User_Id, Tweet_Id, Tweet FROM TwitterTweet;")
df_tweet = pd.DataFrame(columns=['User_Id','Tweet_Id','Clean_Tweet'])
for data in data_tweet:
index = len(df_tweet)
df_tweet.loc[index,'User_Id'] = data[0]
df_tweet.loc[index,'Tweet_Id'] = data[1]
df_tweet.loc[index,'Clean_Tweet'] = preprocess(data[2])
df_tweet.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.