class_docstr: A column composed of numerical data.
  
  This class encodes a standard interface for different types of columns
  containing numerical types of data. In particular, mathematical operations
  that make sense whether a column is integral or real, fixed or floating
  point, should be encoded here.
code: def quantile(
      self,
      q: np.ndarray,
      interpolation: str,
      exact: bool,
      return_scalar: bool,
  ) -> NumericalBaseColumn:
      if np.logical_or(q < 0, q > 1).any():
          raise ValueError(
              "percentiles should all be in the interval [0, 1]"
          )
      # Beyond this point, q either being scalar or list-like
      # will only have values in range [0, 1]
      if len(self) == 0:
          result = cast(
              NumericalBaseColumn,
              cudf.core.column.column_empty(
                  row_count=len(q), dtype=self.dtype, masked=True
              ),
          )
      else:
          result = self._numeric_quantile(q, interpolation, exact)
      if return_scalar:
          scalar_result = result.element_indexing(0)
          if interpolation in {"lower", "higher", "nearest"}:
              try:
                  new_scalar = self.dtype.type(scalar_result)
                  scalar_result = (
                      new_scalar
                      if new_scalar == scalar_result
                      else scalar_result
                  )
              except (TypeError, ValueError):
                  pass
          return (
              cudf.utils.dtypes._get_nan_for_dtype(self.dtype)
              if scalar_result is NA
              else scalar_result
          )
      return result
  
imports: from __future__ import annotations
  from typing import Optional, cast
  import numpy
  import cudf
  from cudf import _lib
  from cudf._typing import ScalarLike
  from cudf.core.column import ColumnBase
  from cudf.core.missing import NA
  from cudf.core.mixins import Scannable
label_desc: Use image node_id 4 for calling the NumericalBaseColumn obj's underlying member method code with example usage: obj.quantile(q, interpolation, exact, return_scalar) and returns: result, unknown