When I encountered this problem, I saw most of the reasons on the Internet that there were files named with Python feature words such as pandas.py
or csv.py
under the project file, but they did not exist in my project. No reason was found.
Later, I tried to uninstall and reinstall pandas, no error was reported. Therefore, this problem may also be caused by the mismatch between the versions of pandas and numpy. Record this bug.