FileNotFoundError in Python3 (Code editor: Pycharm)

80 Views Asked by At

I have imported

import numpy as np

and I have used

xy = np.loadtxt('./Desktop/wine.csv', delimiter=',', dtype=np.float32, skiprows=1)

but Python3 is not able to read the file and I really do not know why. Can anyone help me please?

1

There are 1 best solutions below

1
On

Can you try again by specifying the full file path?

/home/username/Desktop/wine.cvs