Skip to content

Commit 4f59fdb

Browse files
committed
Add Ns for control and test groups (Issue #45)
1 parent 48e111a commit 4f59fdb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

dabest/_classes.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,8 +1009,11 @@ def __pre_calc(self):
10091009
self.__random_seed)
10101010
r_dict = result.to_dict()
10111011

1012-
r_dict["control"] = cname
1013-
r_dict["test"] = tname
1012+
r_dict["control"] = cname
1013+
r_dict["test"] = tname
1014+
r_dict["control_N"] = int(len(control))
1015+
r_dict["test_N"] = int(len(test))
1016+
10141017
out.append(r_dict)
10151018

10161019
if j == len(idx)-1 and ix == len(current_tuple)-2:
@@ -1039,7 +1042,8 @@ def __pre_calc(self):
10391042

10401043
out_ = pd.DataFrame(out)
10411044

1042-
columns_in_order = ['control', 'test', 'effect_size', 'is_paired',
1045+
columns_in_order = ['control', 'test', 'control_N', 'test_N',
1046+
'effect_size', 'is_paired',
10431047
'difference', 'ci',
10441048

10451049
'bca_low', 'bca_high', 'bca_interval_idx',

0 commit comments

Comments
 (0)