TypeError:“DataFrameWriter”对象不是callab

2024-09-28 01:32:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试将数据帧保存到对象存储:

print(type(saveDF))
<class 'pyspark.sql.dataframe.DataFrame'>

然后:

^{pr2}$

结果:

TypeErrorTraceback (most recent call last)
<ipython-input-90-d20d6b31a2d4> in <module>()
      1 ----> saveDF.write().csv("pre-processed")

TypeError: 'DataFrameWriter' object is not callable

我已经看到了很多其他问题,但这些问题使用了另一种方法来保存为csv。在


Tags: csv数据对象mostdataframesqltypeclass

热门问题