从Tableau视图导出完整数据

时间:2019-06-13 17:21:50

标签: python python-3.x

希望通过使用Python在csv中导出完整(底层)数据。

我能够获取摘要数据

with server.auth.sign_in(tableau_auth):
    all_views, pagination_item = server.views.get()
    for view in all_views:
     print(view.name)
     if view.name == "Test Sheet":
       server.views.populate_csv(view)
       print(view.id)
       break

       with open('./view_csv_Test.csv', 'wb') as f:
           Perform byte join on the CSV data
           f.write(b''.join(view.csv))

0 个答案:

没有答案