`★ Insight ─────────────────────────────────────`

`★ Insight ─────────────────────────────────────`

Use dt.day_of_week to get the day number from a Python Pandas datetime series.

But is 0 Sunday or Monday? Or not used at all?

Better: Use the day_name method:

df['x'].dt.day_name()

Good news: It returns a series of strings!
Bad news: It’s 4x slower.