简体   繁体   English

是否可以使用python从已发布的Tableau工作簿/服务器中提取数据

[英]Is it possible to extract data from published Tableau workbook / server using python

As in title, any way to read data to a Pandas DataFrame? 如标题中所示,有什么方法可以将数据读取到Pandas DataFrame?

Can't find much info about it anywhere. 在任何地方都找不到太多有关它的信息。 Found something about Tableau Data Extract and their SDK, but the first one doesn't seem to apply and can't find documentation for the latter. 找到了有关Tableau Data Extract及其SDK的信息,但是第一个似乎不适用,找不到后者的文档。

Anyone can point me into the right direction? 任何人都可以指出我正确的方向吗?

Thanks 谢谢

There are two options I am aware of: 我知道两个选项:

  1. Tabcmd Tabcmd

Download the data as csv then load it in to a pandas data frame.You can use the subprocess module to run tabcmd from python. 以csv格式下载数据,然后将其加载到pandas数据框中。您可以使用子流程模块从python运行tabcmd。

Eg: tabcmd export "Sales_Workbook" --csv -f "output.csv" -s http://tabserver.mycompany.com -u admin -p mypassword -t your_sitename 例如: tabcmd export "Sales_Workbook" --csv -f "output.csv" -s http://tabserver.mycompany.com -u admin -p mypassword -t your_sitename

  1. Tableau REST API Tableau REST API

Eg: GET /api/api-version/sites/site-id/views/view-id/data?vf_<fieldname>=filter-value 例如: GET /api/api-version/sites/site-id/views/view-id/data?vf_<fieldname>=filter-value

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从python中的tableau服务器中删除工作簿 - How to delete workbook from tableau server in python 使用JSON将数据从Python导出到Tableau吗? - Export data from Python into Tableau using JSON? 如何使用 python xlrd/xlwt 从一个 excel 工作簿和 output 将数据提取到另一个工作簿? - how to extract data from one excel workbook and output to another using python xlrd/xlwt? 是否可以使用 python 从交互式 JS 图中提取数据? - Is it possible to extract data from an interactive JS graph using python? 是否可以在 Tableau 中使用 Python 中的 Tableau Server 客户端库重命名本地组? - Is it possible to rename local group with Tableau Server Client library in Python in Tableau? 如何使用 Python 将数据上传到 Tableau Server - How to upload data to Tableau Server in Python 将数据从 Tableau Server 拉入 Pandas Dataframe - Pull data from Tableau Server into Pandas Dataframe 使用Tableau Data Extract API(Python和Linux)时“文件太短” - “File too short” with Tableau Data Extract API (Python and Linux) Python酸洗/多重处理和Tableau Data Extract API的问题 - Issues with Python pickling/multiprocessing and Tableau Data Extract API 使用python从主数据中提取数据 - extract data from master data using python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM