-2

I've downloaded a csv, let's call it april.csv

Then I got an error message, april.csv does not exist.

I tried to open it like this:

df = pd.read_csv("C:\Users\Lenovo\Downloads\pydata_pandas-master.zip\pydata_pandas-master\data\april.csv")

I also tried it without " ", I tried it with ', I also tried it with two backslashes, C:\Users etc.

Nothing worked.

ADyson
  • 57,178
  • 14
  • 51
  • 63
LizaM
  • 1
  • 1

1 Answers1

0

Please first unzip file and try below approach from unzipped directory.

df=pd.read_csv("C:\\Users\\alice\\Downloads\\emp.csv",encoding='latin-1')
Manoj Kumar Dhakad
  • 1,862
  • 1
  • 12
  • 26