code: def insert_rows(self, row, no_rows=1):
          
  
          # Mark content as changed
          post_command_event(self.main_window, self.ContentChangedMsg)
  
          tab = self.grid.current_table
  
          self.code_array.insert(row, no_rows, axis=0, tab=tab)
docs: Adds no_rows rows before row, appends if row > maxrows
  
          and marks grid as changed