pandas.read_parquet from s3 code example
Example 1: pandas dataframe to parquet s3
import awswrangler as wr
wr.pandas.to_parquet(
dataframe=df,
path="s3://my-bucket/key/my-file.parquet"
)
Example 2: pandas read parquet from s3
s3_url = 's3://bucket/folder/bucket.parquet.gzip'
df.to_parquet(s3_url, compression='gzip')