Skip to content

Instantly share code, notes, and snippets.

@charliejllewellyn
Created May 17, 2019 08:44
Show Gist options
  • Save charliejllewellyn/eef4b5aa749c03b639532746ebf5cdb6 to your computer and use it in GitHub Desktop.
Save charliejllewellyn/eef4b5aa749c03b639532746ebf5cdb6 to your computer and use it in GitHub Desktop.
import boto3
import pandas as pd
from sagemaker import get_execution_role
role = get_execution_role()
bucket='cjl-temp-dub'
data_key = 'enron_emails/Enron emails.csv'
data_location = 's3://{}/{}'.format(bucket, data_key)
#df = pd.read_csv(data_location, skiprows=1000, nrows=2000)
df = pd.read_csv(data_location)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment