結果 : how to convert r code to python