Spaces:
Sleeping
Sleeping
Update dashboard.py
Browse files- dashboard.py +2 -1
dashboard.py
CHANGED
@@ -159,6 +159,7 @@ def load_topic2toptasks():
|
|
159 |
|
160 |
|
161 |
def loadTaskMethodTimeSeries(topic,task):
|
|
|
162 |
task_method_ts = pd.read_csv(os.path.join(data_folder, f"""{topic}_{task}_time_series.csv"""),
|
163 |
header=0, sep=',', lineterminator='\n', low_memory=False)
|
164 |
return task_method_ts
|
@@ -596,7 +597,7 @@ def load_Task_Method_trends(topic, **kwargs):
|
|
596 |
|
597 |
#load the task_timeseries dataframe for each of the task mapped from the selected topic in the dict topic2toptasks
|
598 |
for task in topic2toptasks[str(macro_topics_mapping[topic])]:
|
599 |
-
task_data[str(macro_topics_mapping[topic])]=loadTaskMethodTimeSeries(topic,task)
|
600 |
|
601 |
# Create Panel UI with dropdown selection
|
602 |
task_dropdown = pn.widgets.Select(name="Select TASK", options=[key[1] for key in task_data.keys()])
|
|
|
159 |
|
160 |
|
161 |
def loadTaskMethodTimeSeries(topic,task):
|
162 |
+
|
163 |
task_method_ts = pd.read_csv(os.path.join(data_folder, f"""{topic}_{task}_time_series.csv"""),
|
164 |
header=0, sep=',', lineterminator='\n', low_memory=False)
|
165 |
return task_method_ts
|
|
|
597 |
|
598 |
#load the task_timeseries dataframe for each of the task mapped from the selected topic in the dict topic2toptasks
|
599 |
for task in topic2toptasks[str(macro_topics_mapping[topic])]:
|
600 |
+
task_data[str(macro_topics_mapping[topic])]=loadTaskMethodTimeSeries(str(macro_topics_mapping[topic]),task)
|
601 |
|
602 |
# Create Panel UI with dropdown selection
|
603 |
task_dropdown = pn.widgets.Select(name="Select TASK", options=[key[1] for key in task_data.keys()])
|