Python Forum
FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles (/thread-33934.html)

Pages: 1 2


RE: FileNotFoundError: [Errno 2] No such file or directory: 'model/doc2vec.model/Articles - snippsat - Jun-11-2021

(Jun-11-2021, 04:11 PM)Anldra12 Wrote: @snippsat yeah you are right still i have same error
You most mess up something this is really basic stuff.
I can make Articles.csv as example and open it Pandas.
import pandas as pd

df = pd.read_csv("G:/div_code/my_files/Articles.csv", sep=';')
print(df)
Output:
name regcode number 0 Salah 111 22 1 ali 222 33 2 Ranard 333 44
So now file is in this path on my G:/ drive,
navigate in cmd and show files this stuff most you learn as CLI is a import part of programming.
C:\Users\Tom>g:

G:\>cd div_code\my_files

G:\div_code\my_files>dir
 Volume in drive G is Seagate Backup Plus Drive
 Volume Serial Number is E687-60FA

 Directory of G:\div_code\my_files

11.06.2021  18:31    <DIR>          .
11.06.2021  18:31    <DIR>          ..
11.06.2021  18:30                60 Articles.csv
08.06.2021  16:04                 4 boy_1.txt
08.06.2021  16:04                 4 boy_2.txt
               3 File(s)             68 bytes
               2 Dir(s)  1 340 879 269 888 bytes free

G:\div_code\my_files>more Articles.csv
name;regcode;number
Salah;111;22
ali;222;33
Ranard;333;44

G:\div_code\my_files>
So over i have showed that file is this path an the content of file.
Then path as use in script most work as you see it dos.
Also a tips tips cmder is much better,i do not all use cmd/powershell other than give some demo on forum.