使用VectorAssembler的时候出现Sparkexception: Values to assemble cannot be null
的错误,原因是因为Vector不能包含null值。
解决方法如下:
assembler.transform(df.na.fill(999999999))
使用VectorAssembler的时候出现Sparkexception: Values to assemble cannot be null
的错误,原因是因为Vector不能包含null值。
解决方法如下:
assembler.transform(df.na.fill(999999999))