To upgrade pandas to the latest version run
pip install --upgrade pandas
This will ensure we can get features, bug fixes, and performance improvements.
Upgrade Pandas Using pip
Run the following command:
pip install --upgrade pandas
To install a specific version, use:
pip install pandas==2.2.3
Upgrade Pandas in Conda
For Anaconda users, update pandas with:
conda update pandas
To install a specific version:
conda install pandas=2.2.3
Check Installed Version
After upgrading, confirm the version with:
import pandas as pd
print(pd.__version__)
Now you're ready to use the latest pandas features!
Resources
You can check what's new, bug fixes, new features and the latest versions on the links below: