How to drop column which have null value in dataframe via spark scala April 26, 2023 Get link Facebook Twitter Pinterest Email Other Apps How to drop column which have null value in dataframe via spark scalaInput:Output:Solution:#read csv fileval df = spark.read.format("csv").option("header","True").load("file:///D:/5.12_Cybersecurity_(detail).csv")df.show()#drop null value from dataframe val result_df = df.na.drop()result_df.show() Comments
Comments
Post a Comment