Skip to content

Commit a588a44

Browse files
authored
Merge pull request statsmodels#6118 from khs/patch-3
Update summary2.py
2 parents b865e24 + 84108b2 commit a588a44

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

statsmodels/iolib/summary2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,9 @@ def summary_col(results, float_format='%.4f', model_names=(), stars=False,
469469
dict of functions to be applied to results instances to retrieve
470470
model info. To use specific information for different models, add a
471471
(nested) info_dict with model name as the key.
472-
Example: `info_dict = {"N":..., "R2": ..., "OLS":{"R2":...}}` would
473-
only show `R2` for OLS regression models, but additionally `N` for
474-
all other results.
472+
Example: `info_dict = {"N":lambda x:(x.nobs), "R2": ..., "OLS":{
473+
"R2":...}}` would only show `R2` for OLS regression models, but
474+
additionally `N` for all other results.
475475
Default : None (use the info_dict specified in
476476
result.default_model_infos, if this property exists)
477477
regressor_order : list[str], optional

0 commit comments

Comments
 (0)