code: def array(self, dimensions=None):
          
          if dimensions is None:
              dims = [d for d in self.kdims + self.vdims]
          else:
              dims = [self.get_dimension(d, strict=True) for d in dimensions]
  
          columns, types = [], []
          for dim in dims:
              column = self.dimension_values(dim)
              columns.append(column)
              types.append(column.dtype.kind)
          if len(set(types)) > 1:
              columns = [c.astype('object') for c in columns]
          return np.column_stack(columns)
docs: Convert dimension values to columnar array.
  
          Args:
              dimensions: List of dimensions to return
  
          Returns:
              Array of columns corresponding to each dimension