code: def _assign_col_values_without_copy(dat, row_ind, col_ind, val):
      """
      Insert values into different data frame objects.
      """
  
      row_ind = _ensure_iterable(row_ind)
  
      if isinstance(dat, pd_DataFrame):
          # Remove iterable attribute if
          # we are only assigning 1 value
          if len(val) == 1:
              val = val[0]
  
          dat.iloc[row_ind, col_ind] = val
  
      elif isinstance(dat, np.ndarray):
          val.shape = -1
          dat[row_ind, col_ind] = val
  
      else:
          raise ValueError("Unknown data class passed.")
  
imports: from .compat import pd_DataFrame, pd_Series, pd_read_parquet
  import numpy
  from numpy.random import RandomState
  import blosc
  import dill
  from typing import Union, List, Dict, Optional
label_desc: Use image node_id 15 for calling a global function with example usage: _assign_col_values_without_copy(dat, row_ind, col_ind, val) without return types