How to get mean, median, and other statistics over entire matrix, array or dataframe? How to get mean, median, and other statistics over entire matrix, array or dataframe? arrays arrays