Spaces:
Sleeping
Sleeping
Update index.py
Browse files
index.py
CHANGED
@@ -141,7 +141,7 @@ dbc.Row([ # row 11
|
|
141 |
Input('date-range', 'end_date')
|
142 |
)
|
143 |
# callback function
|
144 |
-
def update_output(selected_topic, start_date, end_date):
|
145 |
# filter dataframes based on updated data range
|
146 |
mask_1 = ((df["Topic"] == selected_topic) & (df['date'] >= start_date) & (df['date'] <= end_date))
|
147 |
df_filtered = df.loc[mask_1]
|
|
|
141 |
Input('date-range', 'end_date')
|
142 |
)
|
143 |
# callback function
|
144 |
+
def update_output(selected_topic, selected_domain, start_date, end_date):
|
145 |
# filter dataframes based on updated data range
|
146 |
mask_1 = ((df["Topic"] == selected_topic) & (df['date'] >= start_date) & (df['date'] <= end_date))
|
147 |
df_filtered = df.loc[mask_1]
|