在浏览器中查看、汇总和可视化数据
dexplorer的Python项目详细描述
#使用matplotlib和d3.js进行数据探索
[![生成状态](https://travis-ci.org/epigos/data-explorer.png)](https://travis-ci.org/epigos/data-explorer) [![pypi版本](https://badge.fury.io/py/dexplorer.svg)](https://badge.fury.io/py/dexplorer)
这是一个用tornado、matplotlib和pandas构建的小型库,用于在浏览器中汇总和可视化任何数据源。
目前支持python 3.x
演示
啊![演示](dexplorer/static/img/demo.png)
安装
要安装,只需:
$ pip install dexplorer
用法
启动数据资源管理器:
from dexplorer import DataExplorer
dte = DataExplorer() dte.read_csv(‘example.csv’) # connect csv data source dte.start() # starts a new server on port 9011 by default;
基本上就是这样工作的;
- 使用pandas库加载数据
- 服务器从对浏览器的WebSocket支持开始
- 列的描述性摘要(描述性统计)通过套接字生成并发送,并在浏览器中呈现。
- 然后使用matplotlib生成每个列中的值分布(boxplot和barplot),并作为json发送到浏览器。
- 然后使用d3.js在浏览器中呈现json绘图
文档
可在[此处]找到文档()
运行测试
运行测试
python -m tornado.testing tests.functests