Code runs on Jupyter and Error VSC

Asked

Viewed 77 times

0

inserir a descrição da imagem aquiI run this code by Jupyter and it runs normally, but when I try to run this same code in Visual Studio Code it gives the following error: "File b'Salaries.csv' does not exist" says that the file does not exist, but there is yes.

import pandas as pd
import numpy as np

df = pd.read_csv('Salaries.csv', sep=',', decimal='.')
print(df)
  • Exists, but is in the same folder as the Python script?

  • yes, so I’m not understanding, because in Jupyter the script runs normally and in Visual Studio there is no identification of the file.

  • They are in exactly the same directory.

  • Can make a [mcve] in Repl.it reproducing the problem?

  • I edited and put a photo with all the problem itself in the IDE

  • Couzer, tried to pass the complete directory to make a test?

  • yes and says the same thing

  • Ahh forgot to mention that it identifies read_html, but read_csv does not

  • The problem was in the file itself, do not ask me what, because I do not know, but I tried a new list with the same file format and it worked, thank you for trying to help.

Show 4 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.