code: def _ceillogint(n, base):
      """
      Returns ceil(log(n, base)) for integers n and base.
  
      Uses integer math, so the result is not subject to floating point rounding errors.
  
      base must be >= 2 and n must be >= 1.
      """
      if base < 2:
          raise ValueError("base must be >= 2")
      if n < 1:
          raise ValueError("n must be >= 1")
  
      n -= 1
      ret = 0
      while n > 0:
          ret += 1
          n //= base
      return ret
  
imports: import pandas
  import numpy
  import re
  from category_encoders.ordinal import OrdinalEncoder
  import category_encoders.utils
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: _ceillogint(n, base) and returns: ret