![]() ![]() # Make exponentiated values appear as 2 decimal places. If any of these packages are not already installed you can install them in a code cell of your Notebook with this bit of code: ![]() These are the packages you’ll need: pandas, numpy, yfinance, datetime. I did all my work using a Jupiter Notebook and Python. Compare performance with Standard and Poor 500.Download data for a portfolio of stocks.Doing this using the company’s Web site involved many mouse clicks, waiting for screens to update and then copying and pasting into Excel, so I looked to find an automated method. Specifically, I wanted to be able to compare their performance with other indexes such as the Standard and Poor 500 and the NASDAQ. The motivation behind this was wanting to have daily price data for the investment options offered in my employer’s retirement program. This post shows how to download stock and bond data from Yahoo! Finance using Python and the yfinance package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |