File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -199,21 +199,24 @@ def generate_performance_report(
199
199
.where (dm .Result .run_id == run_id )
200
200
)
201
201
202
- df = pd .read_sql_query (
203
- sql = sql ,
204
- con = conn .connect (),
202
+ df = (
203
+ pd .read_sql_query (sql = sql , con = conn .connect ())
204
+ .astype ({impl : "string" for impl in implementations })
205
+ .fillna ("n/a" )
205
206
)
206
207
207
208
for index , row in df .iterrows ():
208
209
for impl in implementations :
209
210
time = row [impl ]
210
- if time :
211
- NANOSECONDS_IN_MILISECONDS : Final [float ] = 1000 * 1000.0
212
- time /= NANOSECONDS_IN_MILISECONDS
213
211
214
- time = str (round (time , 2 )) + "ms"
215
- else :
216
- time = "n/a"
212
+ if time == "n/a" :
213
+ pass
214
+
215
+ NANOSECONDS_IN_MILISECONDS : Final [float ] = 1000 * 1000.0
216
+ time = float (time )
217
+ time /= NANOSECONDS_IN_MILISECONDS
218
+
219
+ time = str (round (time , 2 )) + "ms"
217
220
218
221
df .at [index , impl ] = time
219
222
You can’t perform that action at this time.
0 commit comments