Hi guys!
I am getting an error if I try to use st.write() for 2 different dataframes. It works if I try to write the same data, but I get the following error if I try to write a different dataframe. I leave my code further below. Thanks!!.
ERROR:
TypeError: exception() takes 3 positional arguments but 4 were given
File "C:\\dashboard.py", line 101, in main
st.write(preds.head())File "C:\\AppData\Local\Programs\Python\Python37\lib\site-packages\streamlit\__init__.py", line 411, in write
exception(exc, exc_tb) # noqa: F821
CODE:
def main():
raw_data = load_data_rows(100)
new_data = raw_data.copy()
st.subheader('RawData')
st.write(new_data.head())
preds = pd.read_pickle('preds.pkl')
st.subheader('Predictions')
st.write(preds.head())