thak123 commited on
Commit
83ae055
·
verified ·
1 Parent(s): 138d9aa

Update index.py

Browse files
Files changed (1) hide show
  1. index.py +1 -1
index.py CHANGED
@@ -234,7 +234,7 @@ def update_output(selected_topic, selected_domain, start_date, end_date):
234
 
235
  # Bar Graph start
236
  # Convert 'period' column to datetime
237
- grouped_df['period'] = pd.to_datetime(df['date'], format='%m/%Y')
238
 
239
  grouped_df = df_filtered.groupby(['period', 'Veículos de notícias']).size().reset_index(name='occurrences')
240
 
 
234
 
235
  # Bar Graph start
236
  # Convert 'period' column to datetime
237
+ df_filtered['period'] = pd.to_datetime(df_filtered['date'], format='%m/%Y')
238
 
239
  grouped_df = df_filtered.groupby(['period', 'Veículos de notícias']).size().reset_index(name='occurrences')
240