How to find the installed pandas version How to find the installed pandas version python python

How to find the installed pandas version

Check pandas.__version__:

In [76]: import pandas as pdIn [77]: pd.__version__Out[77]: '0.12.0-933-g281dc4e'

Pandas also provides a utility function, pd.show_versions(), which reports the version of its dependencies as well:

In [53]: pd.show_versions(as_json=False)INSTALLED VERSIONS------------------commit: Nonepython: 64OS: LinuxOS-release: 3.13.0-45-genericmachine: x86_64processor: x86_64byteorder: littleLC_ALL: NoneLANG: en_US.UTF-8pandas: 0.15.2-113-g5531341nose: 1.3.1Cython: 0.21.1numpy: 1.8.2scipy: 2.0.0-devsphinx: 1.2.2patsy: 0.3.0dateutil: 1.5pytz: 2012cbottleneck: Nonetables: 3.1.1numexpr: 2.2.2matplotlib: 1.4.2openpyxl: Nonexlrd: 0.9.3xlwt: 0.7.5xlsxwriter: Nonelxml: 3.3.3bs4: 4.3.2html5lib: 0.999httplib2: 0.8apiclient: Nonerpy2: 2.5.5sqlalchemy: 0.9.8pymysql: Nonepsycopg2: 2.4.5 (dt dec mx pq3 ext)


pip  list

You should get a list of packages (including panda) and their versions, e.g.:

beautifulsoup4 (4.5.1)cycler (0.10.0)jdcal (1.3)matplotlib (1.5.3)numpy (1.11.1)openpyxl (2.2.0b1)pandas (0.18.1)pip (8.1.2)pyparsing (2.1.9)python-dateutil (2.2)python-nmap (0.6.1)pytz (2016.6.1)requests (2.11.1)setuptools (20.10.1)six (1.10.0)SQLAlchemy (1.0.15)xlrd (1.0.0)

Simplest Solution


import pandas as pdpd.__version__

**Its double underscore before and after the word "version".