Spaces:
Build error
Build error
Update pages/1_Tweets_Visualization_π_.py
Browse files
pages/1_Tweets_Visualization_π_.py
CHANGED
@@ -67,6 +67,7 @@ try:
|
|
67 |
## Display negative sentence locations
|
68 |
ht = df.tweet.apply(lambda txt: '<br>'.join(textwrap.wrap(txt, width=70)))
|
69 |
fig = px.scatter(df, y='topic', x='creation_time', color='sentiment', size='topic_confidence', hover_data=[ht,'topic','username'],\
|
|
|
70 |
title='Topic Score Distribution')
|
71 |
|
72 |
fig.update_layout(
|
|
|
67 |
## Display negative sentence locations
|
68 |
ht = df.tweet.apply(lambda txt: '<br>'.join(textwrap.wrap(txt, width=70)))
|
69 |
fig = px.scatter(df, y='topic', x='creation_time', color='sentiment', size='topic_confidence', hover_data=[ht,'topic','username'],\
|
70 |
+
color_discrete_map={"Bearish":"firebrick","Neutral":"navajowhite","Bullish":"darkgreen"},\
|
71 |
title='Topic Score Distribution')
|
72 |
|
73 |
fig.update_layout(
|