I used to be able to view data variables in Visual Code. Recently I keep getting this error "Python package ‘pandas’ version 0.20.0 (or above) is required for viewing data."
- despite the error message, the installed pandas version IS above 0.20.0. It’s 2.2.0 in fact.
- I have uninstalled and re-installed all of these: pandas, numpy and jupyter extension in Visual Code Studio.
- I have updated anaconda
None of the above removes the issue. Any ideas?
2
Answers
If you are in a
.py
file: Ctrl+Shift+P –>Python: Select Interpreter
, select the correct interpreter, i.e. the one with pandas 2.2.0 installed.If you are using jupyter: click on the kernel version in the upper right corner and select the one with pandas 2.2.0 installed.
You need to install pyarrow , it is a dependency for pandas
https://arrow.apache.org/docs/python/install.html