thak123 commited on
Commit
dd1e68b
·
verified ·
1 Parent(s): 693b85f

Update index.py

Browse files
Files changed (1) hide show
  1. index.py +1 -1
index.py CHANGED
@@ -151,7 +151,7 @@ def update_output(selected_topic, selected_domain, start_date, end_date):
151
  # filter dataframes based on updated data range
152
  mask_1 = ((df["Topic"] == selected_topic) & (df['date'] >= start_date) & (df['date'] <= end_date))
153
  df_filtered = df.loc[mask_1]
154
- print(df_filtered.shape())
155
  #create line graphs based on filtered dataframes
156
  line_fig_1 = px.line(df_filtered, x="date", y="normalised results",
157
  color='Veículos de notícias', title="O gráfico mostra a evolução temporal de sentimento dos títulos de notícias. Numa escala de -1 (negativo) a 1 (positivo), sendo 0 (neutro).")
 
151
  # filter dataframes based on updated data range
152
  mask_1 = ((df["Topic"] == selected_topic) & (df['date'] >= start_date) & (df['date'] <= end_date))
153
  df_filtered = df.loc[mask_1]
154
+ print(df_filtered.shape)
155
  #create line graphs based on filtered dataframes
156
  line_fig_1 = px.line(df_filtered, x="date", y="normalised results",
157
  color='Veículos de notícias', title="O gráfico mostra a evolução temporal de sentimento dos títulos de notícias. Numa escala de -1 (negativo) a 1 (positivo), sendo 0 (neutro).")