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
http https://data.giss.nasa.gov/gistemp/tabledata_v4/GLB.Ts+dSST.csv | sed 1d | | |
spyql " | |
SELECT Year, cols[1:13] AS temps | |
FROM csv | |
TO json" | | |
spyql " | |
SELECT json->Year + ((row_number-1)%12)/12 AS year, json->temps AS temp | |
FROM json | |
EXPLODE json->temps | |
WHERE json->temps is not Null |