結果 : calculate log returns in python