I am creating a line chart to show frequency
and as you can see the “braço 1” is right next to “braço 10” and it should be “braço 2” and so on
def frequency(choices,allrewards):
st.write("### Frequência de recompensas")
df = pd.DataFrame(allrewards).T
df.columns = [f"Braço {i+1}" for i in range(len(allrewards))]
df.index.name = "Execução"
st.line_chart(df)
#example of choices
[24, 12, 22, 23, 19]
#example of allRewards
[[3.123895227453449, 3.515965858835796, 4.171472032800911], [4.2779499849109595], [1.3887435377347015, 3.4967789928358304], [3.807072733441112], [3.728360638605822, 3.142179167264145, 5.329350022687842]]
