Anytime when i just try to call pandas module, i have the error:
import pandas as pd
ValueError: source code string cannot contain null bytes.
I am using VS Code to edit the code. I am sure the file does not contain null bytes, because I rewrote the code and even this import by itself causes the problem.
I have already tried reinstalling Python and VS Code, and I made sure to choose 'add to path' when reinstalling Python.
How can I fix the problem?
utf-8text encoding, but most importantly, do not useutf-16orutf-32since it will use a lot of null bytes. Check the editor settings to make sure the encoding is suitable.