Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
Pandas can't find the csv file

I'm trying to create a dataframe using a csv file for a task, however every time I ran my program it would show me an error that the file could not be found. My code is the following:

 import pandas as pd df = pd.read_csv('thefile')

The code returns an error no matter where I put my file. When I checked the path using the following code:

 import os print(os.getcwd())

It showed me that the path is correct and it's looking inside the folder where my csv file is located but it still gives me the same error.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You need to add .csv behind the file,
without it, it doesn't know what file to look for, it could be the .txt file, the .conf file, the .csv file, the ...

So your code should look like this.

 import pandas as pd df = pd.read_csv('thefile.csv')
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!