Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Find the version of the Pandas and its dependencies

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

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: Find the version of the Pandas using pip

pip show pandas

Output:

 

Example 2: Find the version of the Pandas using code

We can use pd.__version__ to check the version of the Pandas 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:

Find the version of the Pandas

 

My Personal Notes arrow_drop_up
Last Updated : 07 Sep, 2022
Like Article
Save Article
Similar Reads
Related Tutorials