how can i solve this error

Hello @Syed_Muhammad_Abdull,

It’s difficult to debug with only a stack trace – see this post Using Streamlit: how to post a question in the Streamlit forum for adding more helpful context to your answer.

However, off the top of my head, it appears that it’s trying to find a file called Data/, and failing. If you’re trying this on your computer, then make sure that there is a folder called Data, and a file with that name, and that the Data folder is in the same location as your app.

For example:

- pages/
- Data/

If you’ve deployed this app somewhere (say to Community Cloud), then make sure that same Data folder was uploaded along with your app’s code.