code: def rename(self, index=None, columns=None, **kwargs):
          
          kwargs['inplace'] = True
          self.layoutAboutToBeChanged.emit()
          self._dataFrame.rename(index, columns, **kwargs)
          self.layoutChanged.emit()
          self.dataChanged.emit()
          self.dataFrameChanged.emit()
docs: Renames the dataframe inplace calling appropriate signals.
          Wraps pandas.DataFrame.rename(*args, **kwargs) - overrides
          the inplace kwarg setting it to True.
  
          Example use:
          renames = {'colname1':'COLNAME_1', 'colname2':'COL2'}
          DataFrameModel.rename(columns=renames)
  
          :param args:
              see pandas.DataFrame.rename
          :param kwargs:
              see pandas.DataFrame.rename
          :return:
              None