# Python

### Getting the connection URL

Once you've created your query, head over to the [queries module](https://app.tukanmx.com/visualizations/queries), and click on the export button for the query you wish to connect.

<figure><img src="https://1499304022-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKkVlcNPFyJ2f7v0nyyEo%2Fuploads%2F8kYEZIDxxU7fYdNLtGg5%2Fimage.png?alt=media&#x26;token=029530f9-22af-46b6-a0cb-9aec0bce0e84" alt=""><figcaption></figcaption></figure>

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:

```python
import pandas as pd

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

df = YOUR_CONNECTION_STRING
```
