I want to find out the following: given a date (datetime object), what is the corresponding day of the week?
datetime
For instance, Sunday is the first day, Mond
use this code:
import pandas as pd from datetime import datetime print(pd.DatetimeIndex(df['give_date']).day)