This file contains hidden or 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
""" | |
https://gist.github.com/pavlov99/bd265be244f8a84e291e96c5656ceb5c | |
""" | |
from pyspark.sql import SparkSession | |
from pyspark.sql import functions as F | |
CITIES = [ | |
('HKG', 'Hong Kong', 22.308919, 113.914603), | |
('SYD', 'Sydney', -33.946111, 151.177222), | |
('YYZ', 'Toronto', 43.677223, -79.630556), |
NewerOlder