Knowledge base
Platform docsTemplatesGo to platform
  • What is tukan?
  • GETTING STARTED
    • tukan 101
      • 1. Tables
      • 2. Queries
      • 3. Finding data
  • QUERIES
    • Creating a query
    • Connecting to a query
      • Excel (macOS)
      • Excel (Windows)
      • Google sheets
      • PowerBI
      • Python
  • Examples
    • Excel
      • Banking templates
        • IMOR Bancario
      • Macro templates
        • Productividad Laboral, por Estado
        • Inflación, por Estado
Powered by GitBook
On this page

Was this helpful?

  1. QUERIES
  2. Connecting to a query

Python

How to connect your tukan query to a Python script?

PreviousPowerBINextExcel

Last updated 1 year ago

Was this helpful?

Getting the connection URL

Once you've created your query, head over to the , and click on the export button for the query you wish to connect.

Next, select the Python tab and click the Copy link button to copy the query's "connection string" to your clipboard.

This "connection string" is essentially a pandas read_csv command to import the query to your script as a DataFrame.


On you Pyhton script or Jupyter notebook, simply import the following libraries:

import pandas as pd

# --- Paste your "connection string" here.

df = YOUR_CONNECTION_STRING

queries module