Created
October 18, 2019 15:18
-
-
Save brandon-segal/7b39a52b996dc2758f90930aea576dfb to your computer and use it in GitHub Desktop.
Redash To Pandas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
QUERY_NUM = {{YOUR_QUERY_NUMBER}} | |
API_KEY = {{YOUR_API_KEY}} | |
URL = f'https://redash.xmode.io/api/queries/{QUERY_NUM}/results.csv?api_key={API_KEY}' | |
df = pd.read_csv(URL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment