Skip to content

Instantly share code, notes, and snippets.

@ayemos
Created October 3, 2019 13:27
Show Gist options
  • Save ayemos/eb31c81ff2fa9af604c8d7bbf26dc5af to your computer and use it in GitHub Desktop.
Save ayemos/eb31c81ff2fa9af604c8d7bbf26dc5af to your computer and use it in GitHub Desktop.
import random
import awswrangler
import pandas as pd
df = pd.DataFrame(
{
'x': (random.random() for _ in range(1000)),
'y': (random.random() for _ in range(1000))})
session = awswrangler.Session()
session.pandas.to_parquet(
df,
mode='overwrite',
path='s3://BUCKET/PREFIX/',
database='wrangler_db',
table='dummy_table')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment