import numpy as np
myarray = np.random.random((5, 10, 30))
yy = slice(1, 5)
xx = slice(20, 30)
mymean = [np.mean(myarray[t, yy, xx]) for t in np.arange(5)]
Multiple Element Indexing in multi-dimensional array