Transform a skewed distribution into a Gaussian distribution
You can do a log transformation on your data with the help of numpy log functionality as shown below :

log_data = np.log(data)


This will transform the data into a normal distribution. Moreover, you can also try Box-Cox transformation which calculates the best power transformation of the data that reduces skewness although a simpler approach which can work in most cases would be applying the natural logarithm. More details about Box-Cox transformation can be found here and here