From a6f7125d4ef6faa680aa9006c65f332cb1c634ff Mon Sep 17 00:00:00 2001 From: Johannes Schumann <johannes.schumann@fau.de> Date: Thu, 1 Oct 2020 01:23:49 +0200 Subject: [PATCH] Fixed column name of particle df --- km3buu/output.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/km3buu/output.py b/km3buu/output.py index 9160e98..c5f5367 100644 --- a/km3buu/output.py +++ b/km3buu/output.py @@ -176,6 +176,7 @@ class GiBUUOutput: for col in PARTICLE_COLUMNS: tmp = awkward.topandas(fobj["RootTuple"][col].array(), flatten=True) + tmp.name = col if file_df is None: file_df = tmp else: @@ -188,8 +189,6 @@ class GiBUUOutput: file_df.index = file_df.index.set_levels(new_indices, level=0) df = df.append(file_df) fobj.close() - - df = df.rename(columns=dict(enumerate(PARTICLE_COLUMNS))) return df @property -- GitLab