What are rolling, expanding, and EWM windows used for?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Explain what rolling, expanding and exponentially weighted windows in pandas are used for and how they differ. The question tests whether you know which observations each window uses, how it weights them, and the lag and leakage trade-offs when smoothing time series or building features.