Skip to content

Instantly share code, notes, and snippets.

@kevintrankt
Created November 15, 2018 22:54
Show Gist options
  • Save kevintrankt/fc454bd3cac7821c6872da0fd8f4397f to your computer and use it in GitHub Desktop.
Save kevintrankt/fc454bd3cac7821c6872da0fd8f4397f to your computer and use it in GitHub Desktop.
Using Python 3 with Import.io
import requests
import pandas as pd
API_ENDPOINT = '<ENDPOINT>'
session = requests.Session()
response = session.get(url=API_ENDPOINT).content
df = pd.read_csv(io.StringIO(response.decode('utf-8')))
print(df.head())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment