<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def rename(self, source_col: str, dest_col: str):
 """ Renames a column in the main dataframe :param source_col: name of the column to rename :type source_col: str :param dest_col: new name of the column :type dest_col: str :example: ``ds.rename("Col 1", "New col")`` """

        try:
            self.df = self.df.rename(columns={source_col: dest_col})
        except Exception as e:
            self.err(e, self.rename, "Can not rename column")
            return
        self.ok("Column", source_col, "renamed")