docs: def is_number(string):
      """ checks if a string is a number (int/float) """
      string = str(string)
      if string.isnumeric():
          return True
      try:
          float(string)
          return True
      except ValueError:
          return False