Created
May 17, 2019 08:44
-
-
Save charliejllewellyn/eef4b5aa749c03b639532746ebf5cdb6 to your computer and use it in GitHub Desktop.
This file contains 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 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