I have a Spark DataFrame with a very large number of columns. I want to remove two columns from it in order to get a new data frame.
If there were fewer columns, I could use the select method in the API as follows:
pcomments = pcomments.select(pcomments.col("post_id"),pcomments.col("comment_id"),pcomments.col("comment_message"),pcomments.col("user_name"),pcomments.col("comment_createdtime"));
But since selecting columns from a long list is a tedious task, is there a workaround?
Count source share