Skip to content

Commit 315c627

Browse files
committed
Remove index and extra column for download
1 parent 4e6c806 commit 315c627

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

panel/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ def csv_data(
234234
) -> io.StringIO:
235235
sio = io.StringIO()
236236

237-
sensitivity_indices.value.to_csv(sio)
237+
si_table = sensitivity_indices.value[["Inputs", ""]]
238+
si_table.rename(columns={"": "Indices"}, inplace=True)
239+
si_table.to_csv(sio, index=False)
238240
scenario.data.to_csv(sio)
239241
states.data.to_csv(sio)
240242

0 commit comments

Comments
 (0)