code: def quantizeSignal(self, iSignal, Q):
      q = pd.Series(range(0, Q)).apply(
          lambda x: iSignal.quantile(x / Q)
      )
      curve = q.to_dict()
      lSignal_Q = (
          iSignal.apply(lambda x: self.signal2quant(x, curve)) + 1
      )
      s = self.quant2signal(lSignal_Q, iSignal, Q)
      # return lSignal_Q
      return iSignal
  
imports: import pandas
  import numpy
label_desc: Use image node_id 4 for calling the cSignalQuantizer obj's underlying member method code with example usage: obj.quantizeSignal(iSignal, Q) and returns: iSignal