예제 #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)