Skip to content

Commit 0c6df09

Browse files
ahrzbclaude
andcommitted
fix(bench): titanic handcrafted twin trims spaces only, matching SQL trim semantics (reviewer note)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 82ab6ca commit 0c6df09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

benchmarks/serving_scenarios/titanic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ def infer(row: dict) -> dict:
344344
"age_x_pclass": age_filled * pclass,
345345
"age_bin": age_bin,
346346
"has_cabin": 0 if cabin is None else 1,
347-
"deck": "U" if cabin is None else cabin.strip()[:1].upper(),
347+
"deck": "U" if cabin is None else cabin.strip(" ")[:1].upper(),
348348
"embarked_s": 1 if emb == "S" else 0,
349349
"embarked_c": 1 if emb == "C" else 0,
350350
"embarked_q": 1 if emb == "Q" else 0,

0 commit comments

Comments
 (0)