Spark Check Column Present in DataFrame
You can get all columns of a DataFrame as an Array[String] by using columns attribute…
Comments Off on Spark Check Column Present in DataFrame
April 4, 2021
You can get all columns of a DataFrame as an Array[String] by using columns attribute…
You can directly use the df.columns list to check if the column name exists. In…