Small style fixes

This commit is contained in:
Matthias
2021-05-03 06:30:41 +02:00
parent 6d7096dc66
commit da574e4e69
2 changed files with 3 additions and 3 deletions

View File

@@ -362,8 +362,7 @@ class HyperoptTools():
)
trials['Avg duration'] = trials['Avg duration'].apply(
lambda x: f'{x:,.1f} m' if isinstance(
x, float) else f"{x.total_seconds() // 60:,.1f} m"
if not isna(x) else ""
x, float) else f"{x.total_seconds() // 60:,.1f} m" if not isna(x) else ""
)
trials['Objective'] = trials['Objective'].apply(
lambda x: f'{x:,.5f}' if x != 100000 else ""