Skip to content

Instantly share code, notes, and snippets.

View mgje's full-sized avatar

Martin Guggisberg mgje

  • University of Applied Sciences and Arts Northwestern Switzerland
  • Basel
View GitHub Profile
@mgje
mgje / animation.py
Created February 7, 2021 13:52 — forked from korakot/animation.py
Make animation in Colab with matplotlib
from matplotlib import animation, rc
#
# other code
#
anim = animation.FuncAnimation(fig, animate, init_func=init,
frames=100, interval=100, blit=True)
# below is the part which makes it work on Colab
rc('animation', html='jshtml')
anim # or HTML(anim.to_jshtml())
plz pos anz
4112 Bättwil 3
4143 Dornach 3
4226 Breitenbach 4
4233 Meltingen 1
4421 St. Pantaleon 1
4500 Solothurn 3
4513 Langendorf 1
4535 Hubersdorf 1
4553 Subingen 1
plz pos anz
4051 Altstadt Grossbasel 7
4052 Breite 7
4053 Gundeldingen 22
4054 Bachletten 15
4056 St. Johann 26
4057 Matthäus 27
4058 Wettstein 15
4059 Bruderholz 4
4125 Riehen 7
plz pos anz
4102 Binningen 6
4103 Bottmingen 1
4104 Oberwil 4
4105 Biel-Benken 1
4106 Therwil 7
4107 Ettingen 1
4123 Allschwil 14
4124 Schönenbuch 1
4127 Birsfelden 7
"plz","pos","anz"
4310,"Rheinfelden",3
4312,"Magden",1
4313,"Möhlin",5
4314,"Zeiningen",1
4315,"Zuzgen",1
4317,"Wegenstetten",1
4322,"Mumpf",1
4333,"Münchwilen",2
4665,"Oftringen",1
@mgje
mgje / Nationalbank Data
Last active August 23, 2020 09:21
Nationalbank Data Jul 2020
"Date";"D0";"Value"
"1996-12";"GFG";"11903.9"
"1996-12";"D";"49328.4"
"1996-12";"RIWF";"2067.8"
"1996-12";"IZ";"290"
"1996-12";"W";"204.3"
"1996-12";"FRGSF";
"1996-12";"FRGUSD";
"1996-12";"GSGSF";
"1996-12";"IG";"1581.7"
This file has been truncated, but you can view the full file.
{"type":"FeatureCollection","name":"Dataframer_Gemeinden_(Einzelflächen)","features":[{"type":"Feature","properties":{"center":{"x":2672500,"y":1222516.5},"ID":0,"Name":"Dietwil"},"geometry":{"type":"Polygon","coordinates":[[[2671866,1223849],[2671840,1223849],[2671815,1223849],[2671815,1223824],[2671789,1223824],[2671789,1223798],[2671764,1223798],[2671764,1223773],[2671739,1223773],[2671739,1223748],[2671713,1223748],[2671688,1223748],[2671688,1223722],[2671662,1223722],[2671637,1223722],[2671612,1223748],[2671586,1223748],[2671586,1223697],[2671561,1223672],[2671561,1223646],[2671561,1223595],[2671536,1223545],[2671536,1223494],[2671561,1223494],[2671586,1223494],[2671637,1223494],[2671662,1223519],[2671662,1223494],[2671662,1223468],[2671637,1223468],[2671637,1223443],[2671612,1223418],[2671612,1223392],[2671612,1223367],[2671612,1223342],[2671586,1223316],[2671586,1223265],[2671586,1223240],[2671612,1223240],[2671637,1223240],[2671637,1223215],[2671637,1223164],[2671662,1223113],[2671662,1223088],[267166
{
"0":"Dietwil",
"1":"Oberrüti",
"2":"Abtwil",
"3":"Sins",
"4":"Auw",
"5":"Menziken",
"6":"Beinwil",
"7":"Burg",
"8":"Mühlau",
This file has been truncated, but you can view the full file.
{"type":"FeatureCollection",
"name":"Dataframer_Gemeinden_(Einzelflächen)",
"features":[
{"type":"Feature","properties":{"center":{"x":2672500,"y":1222516.5},"ID":0},"geometry":{"type":"Polygon","coordinates":[[[2671866,1223849],[2671840,1223849],[2671815,1223849],[2671815,1223824],[2671789,1223824],[2671789,1223798],[2671764,1223798],[2671764,1223773],[2671739,1223773],[2671739,1223748],[2671713,1223748],[2671688,1223748],[2671688,1223722],[2671662,1223722],[2671637,1223722],[2671612,1223748],[2671586,1223748],[2671586,1223697],[2671561,1223672],[2671561,1223646],[2671561,1223595],[2671536,1223545],[2671536,1223494],[2671561,1223494],[2671586,1223494],[2671637,1223494],[2671662,1223519],[2671662,1223494],[2671662,1223468],[2671637,1223468],[2671637,1223443],[2671612,1223418],[2671612,1223392],[2671612,1223367],[2671612,1223342],[2671586,1223316],[2671586,1223265],[2671586,1223240],[2671612,1223240],[2671637,1223240],[2671637,1223215],[2671637,1223164],[2671662,1223113],[2671662,1223088],[2671662,1223062],[26
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.