Re:Cities with Nice Weather
by angarg12 on Friday May 13, 2022 @03:32PM
(#31371689)
Can you please share the code? Or show the results for other continents.
[ Parent
| on HN ]
Re:Cities with Nice Weather
by munificent on Friday May 13, 2022 @04:07PM
(#31372030)
The code is too hacky to share. Basically, I got a CSV of daily average temperatures for a bunch of cities. I discarded all the rows except for ones in the US and within a single year.
Then, for each city, I just counted the number of days whose temperature was within a range.
I had to do a little massaging because for some reason Washington DC was double counted in there.