Skip to content

Commit 7344645

Browse files
Merge branch 'main' into reenable_numba_mlir
2 parents d381661 + 6764112 commit 7344645

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dpbench/infrastructure/reporter.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,18 +199,21 @@ def generate_performance_report(
199199
.where(dm.Result.run_id == run_id)
200200
)
201201

202+
NA = "n/a"
203+
202204
df = (
203205
pd.read_sql_query(sql=sql, con=conn.connect())
204206
.astype({impl: "string" for impl in implementations})
205-
.fillna("n/a")
207+
.replace("0.0", NA)
208+
.fillna(NA)
206209
)
207210

208211
for index, row in df.iterrows():
209212
for impl in implementations:
210213
time = row[impl]
211214

212-
if time == "n/a":
213-
pass
215+
if time == NA:
216+
continue
214217

215218
NANOSECONDS_IN_MILISECONDS: Final[float] = 1000 * 1000.0
216219
time = float(time)

0 commit comments

Comments
 (0)