class_docstr: A class representing quantiles (percentiles, quartiles, etc.) for a given
  column of Number data.
class_docstr_tok: ["A","class","representing","quantiles","(","percentiles",",","quartiles",",","etc",".",")","for","a","given","column","of","Number","data","."]
docstr: Identify which quantile a given value is part of.
docstr_tok: ["Identify","which","quantile","a","given","value","is","part","of","."]
code: def locate(self, value):
      """
      Identify which quantile a given value is part of.
      """
      i = 0
  
      if value < self._quantiles[0]:
          raise ValueError("Value is less than minimum quantile value.")
  
      if value > self._quantiles[-1]:
          raise ValueError(
              "Value is greater than maximum quantile value."
          )
  
      if value == self._quantiles[-1]:
          return Decimal(len(self._quantiles) - 1)
  
      while value >= self._quantiles[i + 1]:
          i += 1
  
      return Decimal(i)
  
imports: import math
  import string
  from collections import OrderedDict
  from collections.abc import Sequence
  from decimal import ROUND_CEILING, ROUND_FLOOR, Decimal, getcontext
  from functools import wraps
  from slugify import slugify
  from agate import config
  from agate.warns import warn_duplicate_column, warn_unnamed_column
label_desc: Use image node_id 7 for calling the Quantiles obj's underlying member method code with example usage: obj.locate(value) and returns: Decimal, Decimal