Where Conditions To Dataframe Scala

[Solved] Where Conditions To Dataframe Scala | Scala - Code Explorer | yomemimo.com
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

Answers related to where conditions to dataframe scala

Code Explorer Popular Question For Scala