WeRide·Data Scientist·Technical Phone Screen
Jul 2026
WeRide data scientist round with two pandas problems back to back. Both were heavier than I expected for a DS role, felt more like a data engineering screen honestly.
- Write a pandas function that adds a centered sliding-window average column to a DataFrame. For each row, average the k rows before it, the row itself, and the k rows after it. Rows without a full window on either side should get -1.
- Given a DataFrame of time intervals per vehicle (and sometimes per event type), write pandas code to merge overlapping or touching intervals within each group, returning one row per merged interval.
“The edge case handling is where I fumbled.”