Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.chdir('s3://bucket-name')
- import boto3
- import pandas as pd
- from sagemaker import get_execution_role
- role = get_execution_role()
- bucket='bucket-name'
- data_key = 'some_file.csv'
- data_location = 's3://{}/{}'.format(bucket, data_key)
- df = pd.read_csv(data_location)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement