enter image description here
I am getting this result in vs code but it is working in Pycharm and I have used the complete path of the file in both softwares…
what should i do?
is there some setting which i have to do? Also when using just the file name instead of the complete path, both pycharm and vs code are showing the file doesn’t exist..
Question posted in Visual Studio Code
View the official documentation.
View the official documentation.
3
Answers
use the below code
The variable
work
return the file object (we are usingopen()
function).The variable
working
return the file content (we are usingread()
function)print(working) rather than print(work)
Or (better):
You can install pandas package by command
pip install pandas
to read csv file. Using the following codes: