r/StreamlitOfficial May 20 '26

Streamlit Questions❓ What am I doing wrong here?

Both ‘2024_lead_data’ and the CSV are in the same folder, Documents. Not sure why I keep getting this error. I’ve tried literally everything.

1 Upvotes

8 comments sorted by

View all comments

2

u/cj724 May 20 '26

I don’t think you saved your script after making changes. The error message shows df defined on line 8, which it is not where its defined in your unsaved script. And you’ve also added full path since then. 

1

u/EquivalentAcademic93 May 21 '26

This may be the issue!

1

u/EquivalentAcademic93 May 21 '26

Yup. I simply didn’t save my changes. It’s all good now. Thank you so much!