/Predict_price.py Secret
Created
February 4, 2025 09:46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Predict the price using `predict_price_AR` function | |
data['predicted_price'] = data['Adj Close'].rolling(window=rolling_window).apply(predict_price_AR, raw=False) | |
# Shift the predicted price by 1 period | |
data['predicted_price'] = data['predicted_price'].shift(periods=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment