Professional Documents
Culture Documents
Py Spark
Py Spark
1. Page with no likes : Write a query to return the IDs of the Facebook pages that have
zero likes. The output should be sorted in ascending order based on the page IDs.
result_df = pages_df.select("page_id").filter(~col("page_id").isin(a))
result_df.show()