How to find the installed pandas version?

In this tutorial, we will learn how we can find the installed version of Pandas? By Pranit Sharma Last updated : September 20, 2023

Pandas is a special tool that allows us to perform complex manipulations of data effectively and efficiently. Inside pandas, we mostly deal with a dataset in the form of DataFrame. DataFrames are 2-dimensional data structures in pandas. DataFrames consist of rows, columns, and the data.

DataFrame can be created with the help of python dictionaries or lists but in the real world, CSV files are imported and then converted into DataFrames.

Many times, we face a lot of bugs and errors while analyzing our data and sometimes these errors occur because of the incorrect or outdated versions of the pandas installed on your computer.

Finding the installed pandas version

Pandas provide a utility function, pandas.show_versions() method, which tells us about the version of its dependencies, it prints detailed information, including the version of Python, dependent packages, and OS type. Below is the implementation:


To work with pandas, we need to import pandas package first, below is the syntax:

import pandas as pd

Python program to find the installed pandas version

# Importing Pandas package
import pandas as pd

# Check pandas version and other dependencies


The output of the above program is:

commit: None
python-bits: 64
OS: Linux
OS-release: 4.19.0-17-amd64
machine: x86_64
byteorder: little
LC_ALL: None

pandas: 0.23.4
pytest: None
pip: 9.0.1
setuptools: 39.1.0
Cython: None
numpy: 1.14.5
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.6.0
html5lib: 0.999999999
sqlalchemy: 1.2.10
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None

Python Pandas Programs »

Comments and Discussions!

Load comments ↻

Copyright © 2024 All rights reserved.