My RDD might have columns with constant value. In other words, the variance of some of the columns may be zero. My objective is to remove all such columns from the RDD (and ultimately compute the covariance matrix for the remaining columns). How can I do that?
Thanks and regards,