結果 : how to reduce dimension of array in python