Created
November 15, 2018 22:54
-
-
Save kevintrankt/fc454bd3cac7821c6872da0fd8f4397f to your computer and use it in GitHub Desktop.
Using Python 3 with Import.io
This file contains hidden or 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 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