【发布时间】:2021-05-14 17:47:50
【问题描述】:
我正在从 azure 函数中的 blob 中读取 .xslx 数据。我的代码如下所示:
def main(techdatablob: func.InputStream, crmdatablob: func.InputStream, outputblob: func.Out[func.InputStream]):
# Load in the tech and crm data
crm_data = pd.read_excel(crmdatablob.read().decode('ISO-8859-1'))
tech_data = pd.read_excel(techdatablob.read().decode('ISO-8859-1'))
问题是当我尝试解码文件时,出现以下错误:
ValueError: Protocol not known: PK...
“...”后面还有很多奇怪的字符。关于如何正确读取这些文件的任何想法?
【问题讨论】:
-
@BowmanZhu 这是a question on reading in multiple blobs 的延续,您也许可以提供帮助
标签: python pandas azure azure-functions blob