How to display the Training pandas Dataframe that I used to train my classification model (pickled) in my Streamlit app after deploying it?

I am building a Streamlit web app for predicting home loan approval. Now I would like to display the dataset that I used to train my model. Is it feasible for any user of the app, after it has been deployed, to see that Dataframe?
How to display the pandas Dataframe that I used to train my classification model (pickled) in my Streamlit app after deploying it?

Hi @Parvathi_kp, welcome to the Streamlit community!

The data that you used to train your model is somewhat separate from the model that you Pickled. Meaning, the .pkl file is the model object, not the data.

If you want to display the data, you can read in the dataframe via pandas and display it using:

df = pd.read_csv(...)
st.write(df)

Best,
Randy

1 Like