#NEWLINE# def summary_frame( self , what = 'all' , alpha = 0.05 ) : #NEWLINE# #INDENT# import pandas as pd #NEWLINE# from statsmodels.compat.collections import OrderedDict #NEWLINE# ci_obs = self . conf_int ( alpha = alpha , obs = True ) #NEWLINE# ci_mean = self . conf_int ( alpha = alpha , obs = False ) #NEWLINE# to_include = OrderedDict ( ) #NEWLINE# to_include [ 'mean' ] = self . predicted_mean #NEWLINE# to_include [ 'mean_se' ] = self . se_mean #NEWLINE# to_include [ 'mean_ci_lower' ] = ci_mean [ : , 0 ] #NEWLINE# to_include [ 'mean_ci_upper' ] = ci_mean [ : , 1 ] #NEWLINE# to_include [ 'obs_ci_lower' ] = ci_obs [ : , 0 ] #NEWLINE# to_include [ 'obs_ci_upper' ] = ci_obs [ : , 1 ] #NEWLINE# self . table = to_include #NEWLINE# res = pd . DataFrame ( to_include , index = self . row_labels , columns = to_include . keys ( ) ) #NEWLINE# return alpha