Created
September 12, 2019 18:22
-
-
Save austinbrian/301c2879a099bf06bb0a960586b62ffe to your computer and use it in GitHub Desktop.
Get a flat file into a pandas DataFrame
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 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