How can I animate pandas time series?

I have pandas timeseries with a datetime column as an index:

2010-09-20 1828.27 2010-09-21 1843.30 2010-09-22 1898.05 2010-09-23 1897.00 2010-09-24 1902.00 2010-09-27 1828.96 2010-09-28 1824.85 2010-09-29 1808.17 2010-09-30 1833.04 

How do I animate this dataset using a simple matplotlib example.

+4
source share
1 answer

For a simple vs coloumn column, you can try the first code snippet under “neutral Gui animation in pylab” here http://www.scipy.org/Cookbook/Matplotlib/Animations

It will just animate (very efficiently) by updating the line without saving the file.

0
source

Source: https://habr.com/ru/post/1442343/


All Articles