6/11/2023 0 Comments Tableau python apipublish ( mydatasourceitem, folder_path + 'temp.hyper', 'Overwrite' ) print ( "". DatasourceItem ( projectid, name = datasource_name ) item = server. sign_in ( tableau_auth ): mydatasourceitem = TSC. Server ( '', use_server_version = True ) with server. TableauAuth ( auth_list, auth_list, site_id = site ) server = TSC. The intuitive Flourish platform helps us create easy-to-use visualizations in a collaborative way, and the API allows us to reliably deliver the data. to_tableau ( folder_path + 'temp.hyper', add_index = False ) tableau_auth = TSC. Login to Tableau Online and publish a pandas dataframeĪssumes the following pages are imported:įolder_path: folder to store temp.hyper file generatedĭatasource_name: Name of the datasource to publishĪuth_list: List-like with username on index 0, password on index 1 Import pandas as pd import tableauserverclient as TSC from pandleau import * def publishtotableau ( df, folder_path, projectid, datasource_name, auth_list, site = 'yoursite' ): """
0 Comments
Leave a Reply. |