How to work with financial timeseries in Python

In this Python code sample, we cover the following:

  • How to download stock and option prices from Yahoo Finance
  • How to export data to separate Excel sheets
  • How to read from Excel files
  • How to export data to separate CSV files
  • How to read tables from HTML pages
  • How to plot single series stock charts (line graphs, bar charts, candlestick charts) using the cufflinks library
  • How to plot multiple series stock charts (on the same plot and on separate subplots)
  • How to plot normalized charts using the cufflinks library
  • How to plot box plots for each year of stock data

Link to Code (as HTML file)

pythonfinance1.html


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *