用于可视化Pandas对象的Web客户端
项目描述
这是什么?
D-Tale是Flask后端和React前端的组合,为您提供了查看和分析Pandas数据结构的一种简单方法。它与ipython笔记本和python/ipython终端无缝集成。目前,此工具支持DataFrame、Series、MultiIndex、DatetimeIndex和RangeIndex等Pandas对象。
起源
D-Tale是SAS到Python转换的产物。最初是SAS的insight函数上的Perl脚本包装器,现在是基于Pandas数据结构的轻量级Web客户端。
新闻
教程
## 相关资源
获取方式
源代码目前托管在GitHub上:https://github.com/man-group/dtale
最新发布版本的二进制安装程序可在Python包索引Python包索引和conda上使用conda-forge找到。
# conda
conda install dtale -c conda-forge
# if you want to also use "Export to PNG" for charts
conda install -c plotly python-kaleido
# or PyPI
pip install dtale
入门
PyCharm |
jupyter |
---|---|
Python终端
这得益于PyCharm 可以直接调用python或ipython,并使用上面的截图中的命令,应该可以工作
Windows防火墙问题
如果您在Windows浏览器中查看D-Tale时遇到问题,请尝试在防火墙配置中的“允许的应用程序”下将Python设置为公开。这里有一篇很好的文章:如何允许应用程序通过Windows防火墙进行通信
程序化可用的其他功能
import dtale
import pandas as pd
df = pd.DataFrame([dict(a=1,b=2,c=3)])
# Assigning a reference to a running D-Tale process
d = dtale.show(df)
# Accessing data associated with D-Tale process
tmp = d.data.copy()
tmp['d'] = 4
# Altering data associated with D-Tale process
# FYI: this will clear any front-end settings you have at the time for this process (filter, sorts, formatting)
d.data = tmp
# Shutting down D-Tale process
d.kill()
# using Python's `webbrowser` package it will try and open your server's default browser to this process
d.open_browser()
# There is also some helpful metadata about the process
d._data_id # the process's data identifier
d._url # the url to access the process
d2 = dtale.get_instance(d._data_id) # returns a new reference to the instance running at that data_id
dtale.instances() # prints a list of all ids & urls of running D-Tale sessions
许可证
D-Tale根据GNU LGPL v2.1许可。许可证副本包含在LICENSE
其他文档
位于主github存储库
项目详情
下载文件
下载适用于您平台的文件。如果您不确定选择哪一个,请了解有关安装包的更多信息。
源代码分布
dtale-3.14.1.tar.gz (14.1 MB 查看散列值)
构建分布
dtale-3.14.1-py2.py3-none-any.whl (14.5 MB 查看散列值)
关闭
dtale-3.14.1.tar.gz的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | 5c95e6db0fb5c78a6cae5c14f9b0921c59262614511220dbd13244874da3bb77 |
|
MD5 | 78dd63e36ba47453c2532d219b7c445d |
|
BLAKE2b-256 | 9186d3fd01e3f52b1fc3371ad29e078f05fb7ff4f76887b5cbd612ed68e7f974 |
关闭
dtale-3.14.1-py2.py3-none-any.whl的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | 1a9907bc943a9ddee8157a36a11582d1e1b3e7ee0264c208fe58ec1520f0ac42 |
|
MD5 | eb96f57b386548daf29b185d4cacad9b |
|
BLAKE2b-256 | e148ce96e5e4eaaaf7302f27dcda18eaca442b715852e00510046565840a27e3 |