去掉infinity数据的方法:
absperrordf_rdd = absperrordf.rdd.filter(lambda x: (np.isinf(float(x.avgperror)) == False))
去掉infinity数据的方法:
absperrordf_rdd = absperrordf.rdd.filter(lambda x: (np.isinf(float(x.avgperror)) == False))
转载于:https://www.cnblogs.com/sunhuahuaa/p/10675776.html