Answers for "filter in pyspark"

0

pyspark filter

>>> df.filter(df.age > 3).collect()
[Row(age=5, name='Bob')]
>>> df.where(df.age == 2).collect()
[Row(age=2, name='Alice')]
Posted by: Guest on September-17-2020
0

filter in pyspark

df.filter(df.state == "OH")
Posted by: Guest on July-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language