Message='DatetimeProperties' object has no attribute code example Example: DatetimeProperties' object has no attribute 'weekday_name' df['Weekday'] = df['Date'].dt.day_name()