module 'pandas' has no attribute 'read_csv
I had checked for the presence of csv.py
and made sure there was no file of this name. I also tried pip uninstall pandas
and then pip install pandas
. I still got the same error.
What worked for me was: pip-autoremove
.
First install it using pip install pip-autoremove
.
Then, remove pandas using pip-autoremove pandas -y
.
Next, reinstall it using pip install pandas
.
The reason why this is necessary is that sometimes, when using uninstall, the package folder may still be present.