On some versions of numpy/pandas, applying a str map to an empty series doesn't change the type.
As a result, when adding a float to a string, sometimes numpy dies with a uadd error.
We fix this by explicitly casting to a str first

Signed-off-by: Nicholas Curtis <nicurtis@amd.com>
Co-authored-by: Nicholas Curtis <nicurtis@amd.com>
이 커밋은 다음에 포함됨:
Nick Curtis
2024-03-22 11:29:36 -04:00
커밋한 사람 Cole Ramos
부모 ddb5c0ccc9
커밋 d72ef52208
+1
파일 보기
@@ -149,6 +149,7 @@ def show_all(args, runs, archConfigs, output):
.astype(float)
.round(args.decimal)
.map(str)
.astype(str)
+ " ("
+ t_df_pretty.map(str)
+ "%)"