Friday, November 15, 2024
Google search engine
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

Recent Comments