Show Sidebar Hide Sidebar

Moving Averages in Pandas

How to plot moving averages in Pandas and Cufflinks.

Moving Averages in Cufflinks

Technical Analysis (Beta)

Cufflinks v0.6.0 includes a set of Technical Analysis studies for financial data.

These are accessed with a new method called ta_plot.

In [1]:
import cufflinks as cf
import pandas as pd

cf.set_config_file(world_readable=True,offline=False)

Add one or more moving averages to a time series.

In [2]:
cf.datagen.lines(1,500).ta_plot(study='sma',periods=[13,21,55],title='Simple Moving Averages')
Out[2]:
Still need help?
Contact Us

For guaranteed 24 hour response turnarounds, upgrade to a Developer Support Plan.