In my app I create a pandas pivot-table in a human-readable grid. Below the columns headers I have included a row of descriptive text while the remaining row data are all numeric floats. After converting from streamlit 1.17.0 to 1.20.0, I am getting small yellow triangle exclamation points and a warning saying: “The value cannot be interpreted as a number.” How can I suppress or disable these warnings? The pivot table will always have non-numeric text.
Steps to reproduce
Code snippet:
import streamlit as st
import pandas as pd
d = pd.DataFrame({
'Mix number':[1,2,3],
'Mix Name':['Control','Test1','Test2'],
'Ingredient number':[4,5,6],
'Ingredient name':['A','B','C'],
'Level':[33,33,34]
})
pivot_table = pd.pivot_table(
data=d,
values='Level',
index=['Ingredient number','Ingredient name'],
columns=['Mix number','Mix Name']
)
st.dataframe(pivot_table)
If applicable, please provide the steps we should take to reproduce the error or specified behavior.