如何找到已安装的 pandas 版本

编程入门 行业动态 更新时间:2024-10-27 00:29:49
本文介绍了如何找到已安装的 pandas 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在使用某些熊猫功能时遇到了麻烦.如何检查我的安装版本是什么?

I am having trouble with some of pandas functionalities. How do I check what is my installation version?

推荐答案

检查pandas.__version__:

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

Pandas还提供了实用程序功能pd.show_versions(),该功能还报告了其依赖项的版本:

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: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.15.2-113-g5531341 nose: 1.3.1 Cython: 0.21.1 numpy: 1.8.2 scipy: 0.14.0.dev-371b4ff statsmodels: 0.6.0.dev-a738b4f IPython: 2.0.0-dev sphinx: 1.2.2 patsy: 0.3.0 dateutil: 1.5 pytz: 2012c bottleneck: None tables: 3.1.1 numexpr: 2.2.2 matplotlib: 1.4.2 openpyxl: None xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: None lxml: 3.3.3 bs4: 4.3.2 html5lib: 0.999 httplib2: 0.8 apiclient: None rpy2: 2.5.5 sqlalchemy: 0.9.8 pymysql: None psycopg2: 2.4.5 (dt dec mx pq3 ext)

更多推荐

如何找到已安装的 pandas 版本

本文发布于:2023-11-03 01:11:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1553878.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:版本   pandas

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!