diff --git a/km3buu/output.py b/km3buu/output.py index 9160e980101f264a3f23d342d85180f61c28916d..c5f53671da831a0ce0f3a8400b36b79abc05f202 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