intent: in pandas how can I groupby weekday() for a datetime column?
rewritten_intent: create a new column `weekday` in pandas data frame `data` based on the values in column `my_dt`
snippet: data['weekday'] = data['my_dt'].apply(lambda x: x.weekday())