Commit 5ce5aa96 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Bug fixed.

parent 43991106
......@@ -514,7 +514,7 @@ class Metric1D(BaseReport):
df = df.agg(operators)
# transform year MultiIndex into Index (only for year pseudo field)
if config.group_field == 'year':
if isinstance(df.index, pd.core.index.MultiIndex):
df.index = [el[1] for el in df.index]
# the data frame is persistent
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment