Skip to content

Instantly share code, notes, and snippets.

@blackrez
Last active July 18, 2021 10:06
Show Gist options
  • Save blackrez/a50ca2e2272ec16a94aa916671c6ddae to your computer and use it in GitHub Desktop.
Save blackrez/a50ca2e2272ec16a94aa916671c6ddae to your computer and use it in GitHub Desktop.
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': {}},
)
pip install boto3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment