[python-users] Gruppierter Plot aus pandas DataFrame timeseries?

Christopher Arndt chris.arndt at web.de
Fr Mär 11 19:04:11 CET 2016


Am 11.03.2016 um 18:38 schrieb Daniel Suess:
> Dann so:
> 
> import matplotlib.pyplot as pl
> ax = pl.gca()
> for _, group in df.groupby(‘address’):
> 	group.plot(x=‘timestamp’, y=‘offset’, ax=ax)

Super, das hat mir schon mal sehr geholfen, eine sehr komisches
Verhalten des NTP-Servers anschaulich zu machen. Jetzt muss ich nur noch
rausfinden, warum er das macht, was er macht.... :(

Wen es interessiert, wie ich die peerstats-Dateien einlese:

https://gist.github.com/SpotlightKid/aae3293f1a30ee21f04c


Chris







Mehr Informationen über die Mailingliste python-users