I am trying to read simple CSV file in Python. It gives me an FileNotFoundError
.I am pretty sure that the file exists on the given location. Interesting thing is that if I use a different CSV file in
that same location it reads perfectly fine. I am not sure why it works for one and not for other.
Is it something to do with the CSV file itself? I also tried encoding, but no luck.
player_stats = pd.read_csv('2017-18_playerBoxScore.csv', parse_dates=['gmDate'])
FileNotFoundError: File b'2017-18_playerBoxScore.csv' does not exist
line 440, in _read parser = TextFileReader(filepath_or_buffer, **kwds)
Not sure what is _read parser mean.Any idea why it's behaving like this for different CSV files. I am using pycharm.