Example data,
Close
46.119999 47.259998 52.000000
my initial trial;
def Rm(prices): return (prices/prices.shift(1)-1) Yi