code: def get_float_info(self, field):
          
          length = ctypes.c_ulong()
          ret = ctypes.POINTER(ctypes.c_float)()
          _check_call(_LIB.XGDMatrixGetFloatInfo(self.handle,
                                                 c_str(field),
                                                 ctypes.byref(length),
                                                 ctypes.byref(ret)))
          return ctypes2numpy(ret, length.value, np.float32)
docs: Get float property from the DMatrix.
  
          Parameters
          ----------
          field: str
              The field name of the information
  
          Returns
          -------
          info : array
              a numpy array of float information of the data