Fix csv-export error with new hyperopt format
This commit is contained in:
parent
e0083bc58e
commit
cf39dd2163
@ -376,10 +376,11 @@ class HyperoptTools():
|
|||||||
trials['Avg profit'] = trials['Avg profit'].apply(
|
trials['Avg profit'] = trials['Avg profit'].apply(
|
||||||
lambda x: f'{x * perc_multi:,.2f}%' if not isna(x) else ""
|
lambda x: f'{x * perc_multi:,.2f}%' if not isna(x) else ""
|
||||||
)
|
)
|
||||||
trials['Avg duration'] = trials['Avg duration'].apply(
|
if perc_multi == 1:
|
||||||
lambda x: f'{x:,.1f} m' if isinstance(
|
trials['Avg duration'] = trials['Avg duration'].apply(
|
||||||
x, float) else f"{x.total_seconds() // 60:,.1f} m" if not isna(x) else ""
|
lambda x: f'{x:,.1f} m' if isinstance(
|
||||||
)
|
x, float) else f"{x.total_seconds() // 60:,.1f} m" if not isna(x) else ""
|
||||||
|
)
|
||||||
trials['Objective'] = trials['Objective'].apply(
|
trials['Objective'] = trials['Objective'].apply(
|
||||||
lambda x: f'{x:,.5f}' if x != 100000 else ""
|
lambda x: f'{x:,.5f}' if x != 100000 else ""
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user