The Python Oracle

How to filter a Spark dataframe by a boolean column?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Puzzle4

--

Chapters
00:00 Question
00:56 Accepted answer (Score 21)
01:27 Answer 2 (Score 9)
01:38 Answer 3 (Score 2)
02:13 Answer 4 (Score 2)
02:56 Thank you

--

Full question
https://stackoverflow.com/questions/3678...

Answer 2 links:
[filter(condition)]: https://spark.apache.org/docs/2.3.0/api/...
[Column]: https://spark.apache.org/docs/2.3.0/api/...
[types.BooleanType]: https://spark.apache.org/docs/2.3.0/api/...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #apachespark #filter #apachesparksql

#avk47