<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_records_(self) -> dict: """Returns a list of dictionary records from the main dataframe :return: a python dictionnary with the data :rtype: str :example: ``ds.to_records_()`` """

        try:
            dic = self.df.to_dict(orient="records")
            return dic
        except Exception as e:
            self.err(e, "Can not convert data to records")