code: def insertInto(self, tableName, overwrite=False):
          
          self._jwrite.mode("overwrite" if overwrite else "append").insertInto(tableName)
docs: Inserts the content of the :class:`DataFrame` to the specified table.
  
          It requires that the schema of the class:`DataFrame` is the same as the
          schema of the table.
  
          Optionally overwriting any existing data.