parameters: (self, loc, column, value, allow_duplicates=False)
docstring: Insert column into DataFrame at specified location.
  
          Raises a ValueError if `column` is already contained in the DataFrame,
          unless `allow_duplicates` is set to True.
  
          Parameters
          ----------
          loc : int
              Insertion index. Must verify 0 <= loc <= len(columns)
          column : string, number, or hashable object
              label of the inserted column
          value : int, Series, or array-like
          allow_duplicates : bool, optional
docstring_summary: Insert column into DataFrame at specified location.
docstring_tokens: Insert column into DataFrame at specified location .
function: def insert(self, loc, column, value, allow_duplicates=False):
          """
          Insert column into DataFrame at specified location.
  
          Raises a ValueError if `column` is already contained in the DataFrame,
          unless `allow_duplicates` is set to True.
  
          Parameters
          ----------
          loc : int
              Insertion index. Must verify 0 <= loc <= len(columns)
          column : string, number, or hashable object
              label of the inserted column
          value : int, Series, or array-like
          allow_duplicates : bool, optional
          """
          self._ensure_valid_index(value)
          value = self._sanitize_column(column, value, broadcast=False)
          self._data.insert(loc, column, value,
                            allow_duplicates=allow_duplicates)
function_tokens: def insert ( self , loc , column , value , allow_duplicates = False ) : self . _ensure_valid_index ( value ) value = self . _sanitize_column ( column , value , broadcast = False ) self . _data . insert ( loc , column , value , allow_duplicates = allow_duplicates )