'How to downsample a 1d array numpy array exponentially

I have a 1-d numpy array which I would like to down sample with a exponential distribution. Currently, I am using signal.resample(y,downsize) for a uniform re-sample. Not sure if there is a quick way to do this but exponentially

enter image description here

from scipy import signal

# uniform resample example
x = np.arange(100)    
y = np.sin(x)
linear_resample = signal.resample(y,15)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source