aboutsummaryrefslogtreecommitdiff
path: root/utils/plot-fit-results
diff options
context:
space:
mode:
Diffstat (limited to 'utils/plot-fit-results')
-rwxr-xr-xutils/plot-fit-results2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/plot-fit-results b/utils/plot-fit-results
index 7115b81..cb90c8d 100755
--- a/utils/plot-fit-results
+++ b/utils/plot-fit-results
@@ -97,7 +97,7 @@ if __name__ == '__main__':
mcgn = pd.concat([pd.read_hdf(filename, "mcgn").assign(filename=filename) for filename in args.filenames])
# get rid of 2nd events like Michel electrons
- ev = ev.sort_values(['run','gtid']).groupby(['filename','evn'],as_index=False).first()
+ ev = ev.sort_values(['run','gtid']).groupby(['filename','evn'],as_index=False).nth(0)
# Now, we merge all three datasets together to produce a single
# dataframe. To do so, we join the ev dataframe with the mcgn frame