I have a csv file in the same directory with py file If i read it this way :
heart_data = pd.read_csv(r'C:\Python\heart_disease_data.csv')
It works without any problem.
but this way :
heart_data = pd.read_csv(r'heart_disease_data.csv')
It doesn't work, even though it's in the same directory.
I get this message in streamlit :
FileNotFoundError: [Errno 2] No such file or directory: 'heart_disease_data.csv'
any thoughts ?