A day sets a record when its visits are higher than on every earlier day (the first day counts). Store the dates of the record days in result.
import pandas as pd
days = pd.date_range("2025-01-06", periods=56, freq="D")
pattern = [520, 540, 530, 560, 610, 380, 340]
visits = pd.DataFrame({
"date": days,
"visits": [pattern[i % 7] + 6 * i for i in range(56)],
"signups": [round((pattern[i % 7] + 6 * i) * 0.04) for i in range(56)],
})Store your final answer in a variable named result.
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.