We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dad29ef commit a9214c7Copy full SHA for a9214c7
sklbench/report/implementation.py
@@ -16,7 +16,7 @@
16
17
import argparse
18
import json
19
-from typing import Dict, List
+from typing import Dict, Hashable, List
20
21
import openpyxl as xl
22
import pandas as pd
@@ -239,7 +239,7 @@ def get_result_tables_as_df(
239
bench_cases = pd.DataFrame(
240
[flatten_dict(bench_case) for bench_case in results["bench_cases"]]
241
)
242
- bench_cases = bench_cases.map(lambda x: str(x) if hasattr(x, "__hash__") else x)
+ bench_cases = bench_cases.map(lambda x: str(x) if not isinstance(x, Hashable) else x)
243
244
if compatibility_mode:
245
bench_cases = transform_results_to_compatible(bench_cases)
0 commit comments