結果 : how to calculate summary statistics in python