使用 Pandas DataFrames 读写 Tableau 超级文件
项目描述
#已弃用
转到https://github.com/innobi/pantab获取维护包
Tableau Hyper IO:使用 Pandas DataFrames 读写 Tableau 超级文件
它是什么?
一种将 Tableau 超级文件读入 Pandas DataFrames 并从 Pandas DataFrames 写入 Tableau 超级文件的简单方法。
为什么这样做?
对于我正在从事的项目,我需要读取超文件。我搜索了一个包是否已经存在,只找到了pandleau包,它只写入超文件但不读取它们,并且还使用较旧的提取 2.0 API。由于找不到任何其他符合我需要的软件包,我决定自己制作一个,这是一次很好的学习经历。
安装
您可以使用 pip 安装 tableauhyperio:
pip install tableauhyperio
如果您还没有 Tableau hyper API、tqdm 和 pandas 包,这也将尝试下载它们。
示例用法
import tableauhyperio as hio
# Reading a regular hyper file
df = hio.read_hyper("example.hyper")
# Reading a hyper file with a custom schema
df = hio.read_hyper("example.hyper", "my_schema")
# Writing a regular hyper file
hio.to_hyper(df, "example_output.hyper")
# Writing a hyper file with a custom schema and custom table name
hio.to_hyper(df, "example_output.hyper", "my_schema", "my_table")
依赖项
项目详情
关
tableauhyperio -0.8.2.tar.gz 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 329e551a62961fe16b0194b2a9845d552f4dabf37fbfa026b36359a85f6ac2e4 |
|
| MD5 | 70c402ac5787260191f5191b0ed6029d |
|
| 布莱克2-256 | fe15949d32327d8fe40ae9622fb942147fe2ae69cb8b50121ce23afa055e4b25 |
关
tableauhyperio -0.8.2-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 9de46a5e23e3f832faef13bf90ee690204bfdec34f850fccb27f9522355cf765 |
|
| MD5 | fcbd6e49d26aedea4747c6cebeebb34e |
|
| 布莱克2-256 | abea6481ccfa79f31745d9333af7b0050d519d7d94899771738b982733a4d4fe |