--- title: sharpe_ratio description: Learn how to calculate the Sharpe Ratio using time series data in Python. Understand the parameters required, including the target column, risk-free rate, and window size. Enhance your investment analysis by computing the Sharpe ratio. keywords: - Sharpe Ratio - time series data - target column - risk-free rate - window size - python --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; Get Sharpe Ratio. Parameters ---------- data : List[Data] Time series data. target : str Target column name. rfr : float, optional Risk-free rate, by default 0.0 window : PositiveInt, optional Window size, by default 252 Returns ------- OBBject[List[Data]] Sharpe ratio. ```python wordwrap ``` --- ## Parameters This function does not take standardized parameters. --- ## Returns This function does not return a standardized model ---