Skip to content

Commit 086fe55

Browse files
committed
fix pyarrow error
Signed-off-by: nov11 <[email protected]>
1 parent ecf0dd6 commit 086fe55

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/tutorial/ranking/taobao/data/prep_3_merge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ def _clip_clicks(row, behavior_log_cols, duration):
6363
elif ts >= max_ts:
6464
end_idx -= 1
6565
for col in cols:
66-
row[col] = row[col][begin_idx: end_idx]
66+
tmp = row[col][begin_idx: end_idx]
67+
row[col] = tmp.tolist() if isinstance(tmp, np.ndarray) else tmp
6768
return row
6869

6970

0 commit comments

Comments
 (0)