0.655902 | 802364 | 13648.7 |
0.658094 | 8702.45 |
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
// ==UserScript== | |
// @name Show all resolved PR comments | |
// @namespace http://tampermonkey.net/ | |
// @version 0.3 | |
// @description try to take over the world! | |
// @author You | |
// @match https://github.com/*/*/pull/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Describe table output:
>>> spark.sql('describe table extended test.sample').show(truncate=False, n=100)
+----------------------------+--------------------------------------------------------------+----------------------------+
|col_name |data_type |comment |
+----------------------------+--------------------------------------------------------------+----------------------------+
|some_id |bigint |some identifier column |
|created_at |timestamp |when this record was created|
|status |string |status of this record |
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
""" | |
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), |