Пример #1
0
    def dict2df(data):
        """Make a pd.DataFrame from the dict obtained when simulating.

        Arguments:
            data {dict} -- Dict from simulation.

        Returns:
            pd.DataFrame -- A DataFrame
        """
        return base.dict2df(data, False)
Пример #2
0
    def dict2df(data, add_true=True):
        """Make a pd.DataFrame from the dict obtained when simulating.

        Arguments:
            data {dict} -- Dict from simulation.

        Keyword Arguments:
            add_true {bool} -- If we should include the true duration and censoring times
                (default: {True})

        Returns:
            pd.DataFrame -- A DataFrame
        """
        return base.dict2df(data, add_true)