[英]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: 我知道两个选项:
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
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.