Created
May 12, 2021 17:48
-
-
Save pimlock/840afeb76501d266575517fee6ca42ff 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
# 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