(self)
return ret
Conversion method to Pandas DataFrame. To be attached to ResultDict.

    Returns
    --------
    List : of Pandas DataFrames in order of Total, First, Second

    Example
    -------
    >>> Si = sobol.analyze(problem, Y, print_to_console=True)
    >>> total_Si, first_Si, second_Si = Si.to_df()
Conversion method to Pandas DataFrame. To be attached to ResultDict.
Conversion method to Pandas DataFrame . To be attached to ResultDict .
def to_df(self):
    '''Conversion method to Pandas DataFrame. To be attached to ResultDict.

    Returns
    --------
    List : of Pandas DataFrames in order of Total, First, Second

    Example
    -------
    >>> Si = sobol.analyze(problem, Y, print_to_console=True)
    >>> total_Si, first_Si, second_Si = Si.to_df()
    '''
    total, first, (idx, second) = Si_to_pandas_dict(self)

    problem = self.problem
    groups = _check_groups(problem)
    if not groups:
        names = problem.get('names')
    else:
        names, _ = extract_group_names(groups)

    ret = [pd.DataFrame(total, index=names),
           pd.DataFrame(first, index=names)]

    if second:
        ret += [pd.DataFrame(second, index=idx)]

    return ret
def to_df ( self ) : total , first , ( idx , second ) = Si_to_pandas_dict ( self ) problem = self . problem groups = _check_groups ( problem ) if not groups : names = problem . get ( 'names' ) else : names , _ = extract_group_names ( groups ) ret = [ pd . DataFrame ( total , index = names ) , pd . DataFrame ( first , index = names ) ] if second : ret += [ pd . DataFrame ( second , index = idx ) ] return ret