Skip to content

Instantly share code, notes, and snippets.

@anna-geller
Created August 1, 2021 12:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anna-geller/50c605caa75bb8433c6e0810426f7b7c to your computer and use it in GitHub Desktop.
Save anna-geller/50c605caa75bb8433c6e0810426f7b7c to your computer and use it in GitHub Desktop.
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