Skip to content

Commit 9e1c079

Browse files
committed
Mitigate caching issue
1 parent 2b29d10 commit 9e1c079

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

panel/simdec_app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ def column_output(data):
6767

6868
@pn.cache
6969
def filtered_data(data, output_name):
70-
return data[output_name]
70+
try:
71+
return data[output_name]
72+
except KeyError:
73+
return data.iloc[:, 0]
7174

7275

7376
@pn.cache

0 commit comments

Comments
 (0)