Skip to content

Commit 75f54e4

Browse files
committed
Change _append to concat
1 parent 4a25ffd commit 75f54e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RCAEval/logparser/logtemplate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ def parse_logs(template_file, log_file):
107107
match = False
108108
for template in templates:
109109
if template.is_match(line):
110-
df = df._append({'log': line, 'event type': template.template}, ignore_index=True)
110+
df = pd.concat([df, pd.DataFrame([{'log': line, 'event type': template.template}])], ignore_index=True)
111111
match = True
112112
break
113113
if not match:
114-
df = df._append({'log': line, 'event type': None}, ignore_index=True)
114+
df = pd.concat([df, pd.DataFrame([{'log': line, 'event type': None}])], ignore_index=True)
115115
log_file.close()
116116
return df
117117

0 commit comments

Comments
 (0)