Get mean of a distribution Pyhton : So, I generated a vector d of data that follows a normal distribution with some mean and variance.

I want then to calculate a vector s such that each component of it is a function of the type si=f(di). 

Then I want to do the mean. Is there in Python any quick way to do that without any cycle?