@deprecated(msg=DEPRECATION_WARNING)<EOL>def beta(returns, factor_returns):
return ep.beta(returns, factor_returns)<EOL>
Calculates beta.

Parameters
----------
returns : pd.Series
    Daily returns of the strategy, noncumulative.
    - See full explanation in :func:`~pyfolio.timeseries.cum_returns`.
factor_returns : pd.Series
    Daily noncumulative returns of the benchmark factor to which betas are
    computed. Usually a benchmark such as market returns.
     - This is in the same style as returns.

Returns
-------
float
    Beta.