SciPy

scipy.signal.lp2bs

scipy.signal.lp2bs(b, a, wo=1.0, bw=1.0)[source]

Transform a lowpass filter prototype to a bandstop filter.

Return an analog band-stop filter with center frequency wo and bandwidth bw from an analog low-pass filter prototype with unity cutoff frequency, in transfer function (‘ba’) representation.