Skip to content

Commit

Permalink
python: Fixed filtering the data frame for specific columns for an em…
Browse files Browse the repository at this point in the history
…pty data frame.
  • Loading branch information
levy committed Oct 10, 2023
1 parent 8fefe3b commit 9a00591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/inet/test/statistical.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
def _read_scalar_result_file(file_name):
df = read_result_files(file_name, include_fields_as_scalars=True)
df = get_scalars(df, include_runattrs=True)
df = df[["experiment", "measurement", "replication", "module", "name", "value"]]
df = df if df.empty else df[["experiment", "measurement", "replication", "module", "name", "value"]]
return df

def _write_diff_file(a_file_name, b_file_name, diff_file_name):
Expand Down

0 comments on commit 9a00591

Please sign in to comment.