What is the difference between resample() and asfreq() for changing the frequency of time series data?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how the pandas resample and asfreq methods differ when changing the frequency of a time series. Tests what each method does to the index and the values when downsampling and upsampling, and how the resulting gaps are filled.