pyspark---float() argument must be a string or a number, not ‘builtin_function_or_method‘

在这里插入图片描述
错误的提示很明显了,我们的np.array里的列表,肯定是含有对象的,local提交打印出来看看:

在这里插入图片描述

果然,count是Row的内置方法,而我exodata_residual恰好有个count的列。修改列名即可。

Guess you like

Origin blog.csdn.net/qq_42363032/article/details/118960096