Skip to content

Instantly share code, notes, and snippets.

View brandon-segal's full-sized avatar
👋
Working

Brandon Segal brandon-segal

👋
Working
View GitHub Profile
@brandon-segal
brandon-segal / spatialData.json
Created March 26, 2020 23:11
Spatio Temporal Data Example
{
"latitude":39.9526,
"longitude":75.1652,
"horizontalAccuracy":30,
"speed":10,
"timestamp":"2020-03-26T23:11:26.787Z"
}
@brandon-segal
brandon-segal / redash2pandas.py
Created October 18, 2019 15:18
Redash To Pandas
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)