Created
October 3, 2019 13:08
-
-
Save ayemos/9e8c207eb4001c17b7fd8b4fe3e395b8 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/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment