跳转到主要内容

用于可视化Pandas对象的Web客户端

项目描述

image0


CircleCI PyPI Python Versions PyPI Conda ReadTheDocs codecov Downloads Open in VS Code

这是什么?

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

image9

image10

Python终端

这得益于PyCharm image11 可以直接调用pythonipython,并使用上面的截图中的命令,应该可以工作

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存储库

项目详情


发布历史 发布通知 | RSS源

下载文件

下载适用于您平台的文件。如果您不确定选择哪一个,请了解有关安装包的更多信息。

源代码分布

dtale-3.14.1.tar.gz (14.1 MB 查看散列值)

上传时间 源代码

构建分布

dtale-3.14.1-py2.py3-none-any.whl (14.5 MB 查看散列值)

上传时间 Python 2 Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面