Spaces:
Sleeping
Sleeping
File size: 595 Bytes
a746d34 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import tableau_api_lib
import looker_sdk
def generate_dashboard(model):
# Create Tableau dashboard
tableau_api = tableau_api_lib.TableauApi()
dashboard = tableau_api.create_dashboard("My Dashboard")
worksheet = dashboard.add_worksheet("My Worksheet")
worksheet.add_data_source(model)
# Create LookerStudio dashboard
looker_sdk.init("my_instance_url", "my_client_id", "my_client_secret")
looker_dashboard = looker_sdk.Dashboard("My Dashboard")
looker_dashboard.add_element(looker_sdk.Text("My Text"))
looker_dashboard.add_element(looker_sdk.Chart(model)) |