Skip to content

Commit 2d3e581

Browse files
committed
Add scenario column in table
1 parent 0e6d139 commit 2d3e581

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/simdec/visualization.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ def tableau(
165165
# only select/ordering interesting columns
166166
table = table[["colour", "std", "min", "mean", "max", "probability"]]
167167

168+
table.insert(loc=0, column="N°", value=np.arange(1, stop=len(table) + 1))
169+
168170
# style the colour background with palette
169171
cmap = mpl.colors.ListedColormap(palette[::-1])
170172
styler = table.style

0 commit comments

Comments
 (0)