Quantitative modeling with stock prices using pandas