Apache Spark Deep Learning Cookbook
上QQ阅读APP看书,第一时间看更新

Converting a PySpark dataframe to an array

In order to form the building blocks of the neural network, the PySpark dataframe must be converted into an array. Python has a very powerful library, numpy, that makes working with arrays simple.