Skip to main content

使用 Pandas DataFrames 读写 Tableau 超级文件

项目描述

#已弃用

转到https://github.com/innobi/pantab获取维护包

Tableau Hyper IO:使用 Pandas DataFrames 读写 Tableau 超级文件

派皮 PyPI - 许可证 代码风格:黑色

它是什么?

一种将 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 (5.4 kB 查看哈希

已上传 source

内置分布

tableauhyperio-0.8.2-py3-none-any.whl (5.5 kB 查看哈希

已上传 py3