code: def set_float_info(self, field, data):
          
          if getattr(data, 'base', None) is not None and \
             data.base is not None and isinstance(data, np.ndarray) \
             and isinstance(data.base, np.ndarray) and (not data.flags.c_contiguous):
              self.set_float_info_npy2d(field, data)
              return
          c_data = c_array(ctypes.c_float, data)
          _check_call(_LIB.XGDMatrixSetFloatInfo(self.handle,
                                                 c_str(field),
                                                 c_data,
                                                 c_bst_ulong(len(data))))
docs: Set float type property into the DMatrix.
  
          Parameters
          ----------
          field: str
              The field name of the information
  
          data: numpy array
              The array of data to be set