def table()

in rlmeta/utils/stats_dict.py [0:0]


    def table(self, info: Optional[str] = None) -> str:
        h = ["info"] if info is not None else []
        h += ["key", "mean", "std", "min", "max", "count"]
        t = []
        for k, v in self._dict.items():
            row = [info] if info is not None else []
            row += [k, v.mean(), v.std(), v.min(), v.max(), v.count()]
            t.append(row)
        return tabulate(t,
                        h,
                        numalign="right",
                        stralign="right",
                        floatfmt=".8f")