Skip to content

Instantly share code, notes, and snippets.

import os
from collections import defaultdict
from concurrent.futures import ThreadPoolExecutor
from timeit import default_timer
import click
from notifiers import notify
from distributed.diagnostics.plugin import SchedulerPlugin
from distributed.utils import format_time

Keybase proof

I hereby claim:

  • I am abduhbm on github.
  • I am abduh (https://keybase.io/abduh) on keybase.
  • I have a public key whose fingerprint is A676 6E9C 8B33 C026 617B 3588 4937 7BC1 C95B FBEE

To claim this, I am signing this object:

@abduhbm
abduhbm / at_to_df.py
Created April 10, 2019 14:57
Retrieve a table from Airtable to Pandas DataFrame
import requests
import pandas as pd
BASE_URL = 'https://api.airtable.com/v0/'
def airtable_to_dataframe(base_name, table_name, api_key):
header = {'Authorization': 'Bearer ' + api_key}
data = []
r = requests.get(BASE_URL + base_name + '/' + table_name, headers=header)
Verifying my Blockstack ID is secured with the address 1GzFkTESpfEHMLWEwFs4zPusRgEpYX6W5 https://explorer.blockstack.org/address/1GzFkTESpfEHMLWEwFs4zPusRgEpYX6W5