Spaces:
Runtime error
Runtime error
aus10powell
commited on
Commit
·
8897995
1
Parent(s):
5916af1
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,7 @@ def get_tweets_username(username: str) -> dict:
|
|
97 |
if isinstance(df_tweets, pd.DataFrame):
|
98 |
print(df_tweets.head(2))
|
99 |
print(df_tweets.shape)
|
100 |
-
df_tweets = df_tweets[["handle", "created_at", "full_text"]]
|
101 |
df_tweets["created_at"] = df_tweets["created_at"].dt.strftime("%Y-%m-%d %H:%M:%S")
|
102 |
df_tweets = df_tweets.sort_values("created_at", ascending=False)#.tail(10)
|
103 |
df_tweets_html = df_tweets.to_html(classes="center", index=False, escape=False)
|
|
|
97 |
if isinstance(df_tweets, pd.DataFrame):
|
98 |
print(df_tweets.head(2))
|
99 |
print(df_tweets.shape)
|
100 |
+
df_tweets = df_tweets[["handle", "created_at","retweet_count","view_count","like_count", "full_text"]]
|
101 |
df_tweets["created_at"] = df_tweets["created_at"].dt.strftime("%Y-%m-%d %H:%M:%S")
|
102 |
df_tweets = df_tweets.sort_values("created_at", ascending=False)#.tail(10)
|
103 |
df_tweets_html = df_tweets.to_html(classes="center", index=False, escape=False)
|