<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load(self, table: str):
 """Set the main dataframe from a table's data :param table: table name :type table: str :example: ``ds.load("mytable")`` """

        if self._check_db() is False:
            return
        if table not in self.db.tables:
            self.warning("The table " + table + " does not exists")
            return
        try:
            self.start("Loading data from table " + table)
            res = self.db[table].all()
            self.df = pd.DataFrame(list(res))
            self.end("Data loaded from table " + table)
        except Exception as e:
            self.err(e, "Can not load table " + table)