简体   繁体   中英

How do I convert a dataframe to parquet file and upload on Azure Blob storage in R? Any working examples?

This seems to work for csv but I need to upload a Parquet file

library(AzureStor)


bl_endp_key <- storage_endpoint("url", key="key")
cont <- storage_container(bl_endp_key, "containername")
csv <- serialize(dataframe, connection = NULL, ascii = TRUE)
con <- rawConnection(csv)
upload_blob(cont, src=con, dest="output.csv")

You can use the arrow package to write R data frames to Parquet files. See https://arrow.apache.org/docs/r/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM