fix decimal doesn't work for single run

Signed-off-by: fei.zheng <fei.zheng@amd.com>


[ROCm/rocprofiler-compute commit: ce1dcba672]
This commit is contained in:
fei.zheng
2023-05-03 10:04:15 -06:00
parent 783f2a2c2c
commit 80ec3d928b
@@ -143,6 +143,11 @@ def show_all(runs, archConfigs, output, decimal, time_unit, selected_cols, verbo
df = pd.concat([df, t_df], axis=1)
else:
cur_df[header] = [
round(float(x), decimal) if x != "" else x
for x in base_df[header]
]
df = pd.concat([df, cur_df[header]], axis=1)
if not df.empty: