phenomenon description:
When
opens a file, the newspaper Initializing from file failed to initialize the file.
the original statement is:
df=pd.read_csv(r’ job list query by original expected date 529.csv’)
reason analysis:
is because the file path contains Chinese. Since the default engine of read_csv function is C, Chinese recognition is not supported, so this error is reported. This is a common problem when using notebook to open files.
solution:
change engine=’python’ executes successfully.
df=pd.read_csv(r’ job list query by original expected date 529. CSV ‘,engine=’python’)
p>
Read More:
- Error reported in Python reading file oserror: [errno 22] invalid argument: ‘u202ac: \ \ users \ \ yyqhk \ \ desktop \ \ 1. CSV’
- Python failed to use PIL writer library. TTF, etc. oserror: cannot open resource
- Numpy error: oserror: failed to interpret file as a pickle
- Python oserror: [errno 22] invalid argument: solution
- Python-OSError: [Errno 22]
- OSError: libnccl.so.2: cannot open shared object file: No such file or directory
- The file server reports an error of 413, and the file uploaded by nginx reports an error of 413 request entity too large
- Solve the oserror: [errno 22] invalid argument: ‘u202ad’ in Python
- Python memoryerror (initializing a large matrix)
- OSError: SavedModel file does not exist at: ./model/facenet_keras.h5
- How to solve oserror: [errno 98] address already in use and kill the python3 process
- Android reports failed linking file resources
- Python uses requests to request and reports SSL: CERTIFICATE_VERIFY_FAILED error
- PHP function file_ get_ Contents() reports an error when using HTTPS protocol: SSL operation failed
- Hadoop reports an error. Cannot access scala.serializable and python MapReduce reports an error
- Vs2019 + QT parses the XML file and reports an error at doc.setcontent (& file)
- Pychar oserror: [winerror 1455] the page file is too small to complete the operation.
- Vue introduction path is correct, but it always reports an error: already included file name‘ ××ב differs from file name ‘ ××ב only in casing.
- Python calls DLL and reports an error windowserror: [error 126]
- The python script tool of ArcGIS reports an error: indentationerror: unexpected indent solution