from pathlib import Path import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import streamlit as st from sklearn.compose import ColumnTransformer from ...
First, we need to clean and prepare the stock data. This involves converting the date column to the correct format, setting it as the DataFrame index, and calculating daily returns. # Rename the first ...