Importing libraries
For this chapter and the rest of the book, we will be working with the pandas
, numpy
, yfinance
, and matplotlib
libraries. We will also be working with find_peaks
from the ScientificPython library. So, please remember to import them first:
# Import Libraries
import pandas as pd
import numpy as np
import yfinance as yf
%matplotlib inline
import matplotlib.pyplot as plt
from scipy.signal import find_peaks