Reading CSV file from github

I can’t seem to figure out how to get Streamlit CC to read my CSV file. Everything works great on my local machine. Here’s my git repo

main.py

  • viewer
    – code_to_run.py
  • data
    – data_to_read.csv

In code_to_run.py and main.py, I’ve referenced my file as “data/data_to_read.csv” and also tried “./data/data_to_read.csv”. I’ve also tried copying the file to viewer > data > data_to_read.csv, with no luck. Any ideas? The data is there and, as I said, the app works perfectly on local deployment.

Read the guidelines on how to post an effective question in the forum to improve your chances of getting the iisue solved.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.