FileNotFound Error

Ask the community or our support engineers for answers to questions. I am getting a file not found error. I have tried resolving it but it is still the same. It’s working perfectly on the local host but when deployed to Github and then the streamlit cloud I get an error. Please I need your help, thank you.

Hi @Augusta02, welcome to the community!! :wave: :partying_face:

As your .csv file is within the YT__Dashboard/ folder, you need to prepend it to Aggregated_Metrics_By_Video.csv in line 42, like so:

df_agg = pd.read_csv('YT__Dashboard/Aggregated_Metrics_By_Video.csv').iloc[1:,:]

You should do the same for other instances of pd.read_csv in the load_data function and elsewhere.

Happy Streamlit-ing! :balloon:

Thank you so much @snehankekre

Thank you so much it worked

1 Like