查找Python中Pandas及其依赖项的版本

查找Python中Pandas及其依赖项的版本

Pandas是Python中进行数据分析的重要包。有不同的Pandas版本可供使用。由于某些版本不匹配,可能会出现一些问题。因此,我们需要找到Pandas的版本号。我们可以使用以下代码轻松查看它们。

我们可以使用以下命令获取版本 –

pandas.__version__

示例

>>> import pandas as pd
>>> print(pd.__version__)
0.25.2
>>>

我们还可以使用以下函数获取依赖项的版本 –

pandas.show_versions()
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit : None
python : 3.7.1.final.0
python-bits : 64
OS : Windows
OS-release : 7
machine : AMD64
processor : Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None

pandas : 0.25.2
numpy : 1.15.3
pytz : 2018.7
dateutil : 2.7.4
pip : 19.2.2
setuptools : 39.0.1
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.2.5
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.6.3
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.2.5
matplotlib : 3.0.1
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
>>>

Python教程

Java教程

Web教程

数据库教程

图形图像教程

大数据教程

开发工具教程

计算机教程