This error usually happens when pandas needs to be built from source, but the required C++ build tools or dependencies are not set up.
One can fix it easily by upgrading your tools and letting pip use the prebuilt wheel.
If using a virtual environment, activate it first, and also make sure you are using Python 3.8+ and the correct environment in VS Code. You also do not need to install extra virsual C++ tools for this anymore.