【发布时间】:2019-09-25 14:17:03
【问题描述】:
尝试将自定义 Pandas 数据框添加到 Azure 事件中心。代码如下:
dic = {
'body' : filter_data
}
df = pd.DataFrame(dic,index=[0])
df1 = df.astype(str)
ds = df1 \
.select('body') \
.write \
.format("eventhubs") \
.options(**ehEventConf) \
.option("checkpointLocation", "output") \
.save()
我收到类似"TypeError: 'str' object is not callable"的错误
【问题讨论】:
标签: python pandas pyspark azure-eventhub