Skip to content
Snippets Groups Projects

fix table chi2 grouped by

Merged Emanuele Roberto Nocera requested to merge fix_groups_results into master
1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
@@ -799,8 +799,13 @@ def groups_chi2_table(groups_data, pdf, groups_chi2, groups_each_dataset_chi2):
for group, groupres, dsresults in zip(groups_data, groups_chi2, groups_each_dataset_chi2):
for dataset, dsres in zip(group, dsresults):
stats = chi2_stats(dsres)
stats["group"] = dataset.name
stats["dataset"] = dataset.name
stats["group"] = str(group)
records.append(stats)
stats = chi2_stats(groupres)
stats["group"] = str(group)
stats["dataset"] = "Group Total"
records.append(stats)
return pd.DataFrame(records)
Loading