Rdd consists of entire csv records and not able to find ways to exclude particular colums from it.
Am tried drop().
For example CSV File consists of three columns no,name and age.
Now I need to exclude 2 columns no and name
Val excluColumns='no,name'
rdd.drop(excluColumns)
Makes Issue in code.
Am new to this spark and anyone guide me to do this.
EDIT-1
val cols="no,name"
val excluColumns= Seq(cols)
df.drop(excluColumns:_*)
.show()
It leads conversion issue.