Skip to content
0:00 / 0:00

#pandas#matplotlib#pandas-datareader

Python Pandas data analysis tutorial part 2

The Academy

68 subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 on Stack Overflow and its sister sites.

Intermediate. Assumes working knowledge.

1.9K views8 years ago1 recommendation

Programming languagesDatabases and dataPythonData engineering and warehousesData visualization

The Academy demonstrates how to calculate stock moving averages using Pandas and visualize the results with Matplotlib.

Welcome to the python pandas programming tutorial part 2. In this python pandas episode, we are going to calculate moving averages for a stock using python pandas, pandas datareader and visualize the results in matplotlib. We will work with data from Morningstar. ★☆★ Recommended Books: ★☆★ Learn more about Python Pandas from the creator himself Wes McKinney ► amzn.to/2q7MM8s Thorough introduction to Python ► amzn.to/2HhqKXS ★☆★ SUBSCRIBE TO ME ON YOUTUBE: ★☆★ ► Press the subscribe button to access the latest videos as soon as they are upload ★☆★ ABOUT THE ACADEMY: ★☆★ Welcome to the Academy channel on youtube. This is a channel for python programming tutorials with focus on data analysis. Learn about data analysis, python pandas, machine learning, finance, matplotlib and much more. We are also covering linux and tutorials in how to use the linux terminal. ★☆★ RECOMMENDED RESOURCES: ★☆★ If you liked found this video valuable, give it a like and subscribe to the channel. Leave a comment below with your thoughts and share the video with someone you know.

Why it's here

1 person recommends this

What people say. Recommended as a tutorial for calculating and plotting moving averages in Pandas.

Martin598on Stack Overflow • Recommends

On “Moving Average Pandas”

…a df = web.DataReader(stock,'morningstar', start, end) df = df'Close' print df plt.plot(df'WFC',label= 'Close') plt.plot(df'WFC'.rolling(9).mean(),label= 'MA 9 days') plt.plot(df'WFC'.rolling(21).mean(),label= 'MA 21 days') plt.legend(loc='best') plt.title('Wells Fargo\nClose and Moving Averages') plt.show() Tutorial on how to do this: link to this video…