SyntaxFix
Write A Post
Hire A Developer
Questions
df.filter(df.location.contains('google.com')) Spark 2.2 documentation link
df.filter(df.location.contains('google.com'))
Spark 2.2 documentation link
You can use plain SQL in filter df.filter("location like '%google.com%'") or with DataFrame column methods df.filter(df.location.like('%google.com%')) Spark 2.1 documentation link
You can use plain SQL in filter
filter
df.filter("location like '%google.com%'")
or with DataFrame column methods
df.filter(df.location.like('%google.com%'))
Spark 2.1 documentation link