Created
January 12, 2021 20:11
-
-
Save bh1995/1368f707cf7715f97d849fa1f2902a46 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
neighbourhood_property_sql = """SELECT neighbourhood_cleansed, count(DISTINCT property_type) as property_type_count | |
FROM listings_df2 | |
WHERE city = "Beijing" | |
GROUP BY neighbourhood_cleansed | |
ORDER BY property_type_count DESC""" | |
neighbourhood_property = spark.sql(neighbourhood_property_sql).cache(); | |
neighbourhood_property.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment