Created
December 7, 2020 05:30
-
-
Save steven-tey/4de35faebd3027d13636e971f0e0bece to your computer and use it in GitHub Desktop.
Connecting to AWS S3 Bucket
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
bucket = "sugges" | |
s3 = boto3.client('s3', config=Config(connect_timeout=600, read_timeout=600, retries={'max_attempts': 10})) | |
metadata = pd.read_csv(s3.get_object(Bucket= bucket, Key="metadata.csv")['Body']) | |
credits_ = pd.read_csv(s3.get_object(Bucket= bucket, Key="credits.csv")['Body']) | |
keywords = pd.read_csv(s3.get_object(Bucket= bucket, Key="keywords.csv")['Body']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment