Find the version of the Pandas and its dependencies
Pandas is one of the most important packages for data analysis in Python and that means frequent updates of the version of the Pandas. This leads to compatibility issues with other dependencies of Pandas. Let’s discuss the ways to check the version of the Pandas and its dependencies running on any system.
Find the Version of the Pandas Running on Any System
Example 1: Check Pandas Version in Python using pip
We can check Pandas version in Python by using pip show command as given below.
pip show pandas
Output:
Example 2: Find the Pandas Version Using Code
We can use pd.__version__ to check Pandas version in Python running on any system.
Python3
# importing pandas as pd import pandas as pd # Check the version print (pd.__version__) |
Output:
0.23.4
Example 3: Find the Version of the Dependencies of the Pandas
We can use the utility function pd.show_versions() to check the version of the dependencies.
Python3
# importing pandas as pd import pandas as pd # Check the version of the dependencies pd.show_versions() |
Output:
Contact Us