Pandas is a python module that allows you to create a dataframe and easily manipulate it using the various inbuilt pandas function. If you want to know which version of pandas module is installed in your system, then this post is for you. Here you will learn the various ways to check the pandas version on different platforms.
How to check pandas version on different platforms
Terminal or Command Prompt
Open your terminal type the python to run the Python console and then run the below lines of code to get the pandas version in your system.
>>import pandas as pd >>pd.__version__
You will get the pandas version.
Type the following lines of code to check the version of pandas in Jupyter Notebook
import pandas as pd pd.__version__
You can check the version of the pandas in the project interpreter. Go to File > Settings > Project Interpreter. There you will see all the list of python packages in your python environment. You will find the pandas module with the version there.
If you want to check the pandas version using conda then open the anaconda prompt and type the following command.
conda list pandas
You can use the pipe freeze command to know the version of the pandas installed in the Google colab. Rune the below command in the code cell to get the version.
pip freeze | grep pandas
pandas==1.3.5 pandas-datareader==0.9.0 pandas-gbq==0.13.3 pandas-profiling==1.4.1 sklearn-pandas==1.8.0
These are the ways to check the version of the pandas on different platforms. If you have any suggestions then you contact us to add more ways here.