Skip to content

Instantly share code, notes, and snippets.

@austinbrian
Created September 12, 2019 18:22
Show Gist options
  • Save austinbrian/301c2879a099bf06bb0a960586b62ffe to your computer and use it in GitHub Desktop.
Save austinbrian/301c2879a099bf06bb0a960586b62ffe to your computer and use it in GitHub Desktop.
Get a flat file into a pandas DataFrame
import pandas as pd
import boto3
s3 = boto3.resource('s3')
data_file = s3.Object(bucket_name='challenge-1-data-09122019', key='data/wiki_movie_plots_deduped.csv')
resp = data_file.get()
data = pd.read_csv(resp['Body'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment