Skip to content
Snippets Groups Projects
Commit 15e5a283 authored by Johannes Schumann's avatar Johannes Schumann
Browse files

Add a fix for awkward<2

parent bda3c5d4
No related branches found
No related tags found
No related merge requests found
Pipeline #53329 passed
......@@ -518,7 +518,10 @@ class GiBUUOutput:
GiBUU output data in pandas dataframe format
"""
import pandas as pd
df = ak.to_pandas(self.arrays)
try:
df = ak.to_dataframe(self.arrays)
except:
df = ak.to_pandas(self.arrays)
if len(df) == 0:
return df
sec_df = df[df.index.get_level_values(1) == 0].copy()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment