Back in Chapter 2, Working with Pandas DataFrames, we discussed various ways to create dataframes from collected data; however, we didn't delve into some of the ways pandas can collect data. The StockReader class in the stock_analysis package uses a pandas derivative package called pandas_datareader to collect stock data and the pd.read_html() function to read data from tables in HTML to extract bitcoin data.
In case anything has changed with the data sources that are used in this chapter, the CSV files in the data/ folder can be read in as a replacement so that you can follow along with the text.