Created
August 1, 2021 12:03
-
-
Save anna-geller/50c605caa75bb8433c6e0810426f7b7c 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 | |
s3 = boto3.client("s3") | |
bucket_name = "annageller" | |
s3_object = "sales/customers.csv" | |
obj = s3.get_object(Bucket=bucket_name, Key=s3_object) | |
df = pd.read_csv(obj["Body"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment