def upfirdn(h, x, up=1, down=1, axis=-1):
    x = np.asarray(x)
    ufd = _UpFIRDn(h, x.dtype, up, down)
    return np.apply_along_axis(ufd.apply_filter, axis, x)
Upsample, FIR filter, and downsample
dataset/ETHPy150Open scipy/scipy/scipy/signal/_upfirdn.py/upfirdn