'Calculate the annualised Sharpe ratio of a returns stream
based on a number of trading periods, N. N defaults to 252,
which then assumes a stream of daily returns.
The function assumes that the returns are the excess of
those compared to a benchmark.'

def annualised_sharpe(self, returns, N=252):

    return ((np.sqrt(N) * returns.mean()) / returns.std())
