code: def quantiles(data, nbins_or_partition_bounds):
      
      return apply_along_axis(
          qcut,
          1,
          data,
          q=nbins_or_partition_bounds, labels=False,
      )
docs: Compute rowwise array quantiles on an input.