You can use scipy.signal.decimate function from SciPy. To determine the q (downsampling) factor, divide the input sampling frequency (e.g. 100 Hz) by the target sampling frequency and round to the closest integer, if necessary. The documentation is available at https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.resample.html