[英]upload pandas dataframe to azure blob without creating csv local file
I have dataframe df that need to be loaded to Azure blob as csv without creating csv file on local.Azure function need to be developed. I have dataframe df that need to be loaded to Azure blob as csv without creating csv file on local.Azure function need to be developed.
First, convert data to.csv:首先将数据转换为.csv:
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html
Then you can use Blob output binding to achieve your requirement:然后您可以使用 Blob output 绑定来实现您的要求:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-output?tabs=python#example https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-output?tabs=python#example
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.