Skills101
← All practice quizzes

Quiz: Time Series with pandas

5 questions · new set on every retakeNo time limitPass: 60%+10 XP on first pass

Work with data over time: a DatetimeIndex, weekly and monthly resampling, rolling averages, weekday patterns, lag and change features, baseline forecasts (naive, seasonal naive, moving average) and why time series must be split by date, not at random.

Log in to take the quiz

Free account · see your score, answers and explanations, earn XP

  1. Question 1

    What does s.resample("W").sum() do for a daily series?

  2. Question 2

    What does this print?

    import pandas as pd
    s = pd.Series([10, 12, 15])
    print(s.shift(1).tolist())
    
  3. Question 3

    Why is a 7-day window a good choice for a rolling average of daily sign-ups with a weekday pattern?

  4. Question 4

    What does this print?

    import pandas as pd
    s = pd.Series([100, 120, 90])
    print(s.pct_change().round(2).tolist()[1:])
    
  5. Question 5

    What does the seasonal naive forecast predict for next Monday?

🎯 Today’s placement challenge — 10 questions, no login. Can you score 10/10?Take today’s challenge →