HomeLanguagesFind the version of the Pandas and its dependencies

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: 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

 

RELATED ARTICLES

Most Popular

Dominic
32688 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
7057 POSTS0 COMMENTS
Nicole Veronica
12198 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12293 POSTS0 COMMENTS
Shaida Kate Naidoo
7182 POSTS0 COMMENTS
Ted Musemwa
7447 POSTS0 COMMENTS
Thapelo Manthata
7160 POSTS0 COMMENTS
Umr Jansen
7150 POSTS0 COMMENTS