Skip to content

Instantly share code, notes, and snippets.

@pimlock
Created May 12, 2021 17:48
Show Gist options
  • Save pimlock/840afeb76501d266575517fee6ca42ff to your computer and use it in GitHub Desktop.
Save pimlock/840afeb76501d266575517fee6ca42ff to your computer and use it in GitHub Desktop.
# credentials are accessed automatically from one of the common locations
df = pd.read_csv("s3://my-private-bucket/data.csv")
# credentials are passed as arguments (use this only if you really have to!)
df = pd.read_csv(
"s3://my-private-bucket/data.csv",
storage_options={"key": "AKIAIOSFODNN7EXAMPLE", "secret": "SECRET"},
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment