Created
October 3, 2019 13:27
-
-
Save ayemos/eb31c81ff2fa9af604c8d7bbf26dc5af 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
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