0

I have a problem with a Pandas df read_csv command, when I use

import pandas as pd


df = pd.read_csv('C:\\Users\\Johnn\\Desktop\\Stock Picker\\Find Tickercode\\path.csv')

it works, and when I use

df = pd.read_csv('path.csv')

it dosent, but the csv file is in tha same directory as the py file, så I dont understand why

FileNotFoundError: [Errno 2] File b'path.csv' does not exist: b'path.csv

Can anybody please explain it for me. The py script is located in

C:\Users\Johnn\Desktop\Stock Picker\Find Tickercode\path.csv

And my editor is Atom

Martin Gergov
  • 1,556
  • 4
  • 20
  • 29
jhjorsal
  • 197
  • 3
  • 10

0 Answers0