I want to translate this function from Matlab to Python:
x = [randn(30,1); 5+randn(30,1)]; pi = linspace(.01,.99,99); ksdensity(x,pi,\'Function\',\'icdf\'); <