diff --git a/scripts/tools/memory/gh_report.py b/scripts/tools/memory/gh_report.py index 0e949134b1f5db..c35c3e53840be4 100755 --- a/scripts/tools/memory/gh_report.py +++ b/scripts/tools/memory/gh_report.py @@ -375,7 +375,8 @@ def merge(df: pd.DataFrame, comment) -> pd.DataFrame: cols, rows = memdf.util.markdown.read_hierified(body) break logging.debug('REC: read %d rows', len(rows)) - df = df.append(pd.DataFrame(data=rows, columns=cols).astype(df.dtypes)) + df = pd.concat([df, pd.DataFrame(data=rows, columns=cols).astype(df.dtypes)], + ignore_index=True) return df.sort_values( by=['platform', 'target', 'config', 'section']).drop_duplicates() diff --git a/scripts/tools/memory/memdf/util/markdown.py b/scripts/tools/memory/memdf/util/markdown.py index 52aea03e86db91..d738059decec8f 100644 --- a/scripts/tools/memory/memdf/util/markdown.py +++ b/scripts/tools/memory/memdf/util/markdown.py @@ -34,7 +34,7 @@ def read_hierified(f): for i in range(0, len(header)): column = columns[i + 1].strip() if not column: - column = rows[-1][i] + column = rows[-1][i] if rows else '(blank)' row.append(column) rows.append(tuple(row))