May-30-2020, 07:04 AM
I cannot open the file below. Both the .py file and the salesdata.csv are stored in the same directory.
This is the error :
FileNotFoundError: [Errno 2] No such file or directory: 'salesdata.csv'
Any advice ?
This is the error :
FileNotFoundError: [Errno 2] No such file or directory: 'salesdata.csv'
Any advice ?
# Import pyplot graphing function import matplotlib.pyplot as plt # Open the file and read the lines f = open('salesdata.csv','r') salesfile = f.readlines()