diff --git a/src/lambda.py b/src/lambda.py index 29090f1..565c4b1 100644 --- a/src/lambda.py +++ b/src/lambda.py @@ -379,6 +379,10 @@ def generateExcel(self): workbook = writer.book for report in self.reports: print(report['Name'],report['Type']) + if (report['Data']).index.any() == f"{(report['Name'])}$": + print(f"Dropping {(report['Name'])}$ Index") + (report['Data']).drop(index=f"{(report['Name'])}$", inplace=True) + report['Data'].to_excel(writer, sheet_name=report['Name']) worksheet = writer.sheets[report['Name']] if report['Type'] == 'chart':