Last active
July 18, 2021 10:06
-
-
Save blackrez/a50ca2e2272ec16a94aa916671c6ddae 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
resp = s3.select_object_content( | |
Bucket='carto-1000x', | |
Key='data/yellow_tripdata_2016–01.csv'', | |
ExpressionType='SQL', | |
Expression="SELECT tip_amount FROM s3object s", | |
InputSerialization = {'CSV': {"FileHeaderInfo": "Use",'FieldDelimiter': ',','RecordDelimiter': '\n'}, 'CompressionType': 'NONE'}, | |
OutputSerialization = {'CSV': {}}, | |
) |
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
pip install boto3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment