Question : where conditions to dataframe scala
Answered by : bright-bug-gm893huytfhd
df.where("person_country = 'Cuba'").explain()
df.where($"person_country" === "Cuba").explain()
df.where('person_country === "Cuba").explain()
df.filter("person_country = 'Cuba'").explain()
Source : https://stackoverflow.com/questions/38867472/spark-select-where-or-filtering | Last Update : Tue, 29 Mar 22