The .dt accessor gives access to the components of a datetime column: year, month, dayofweek, day_name(), as well as floor, to_period. The column must first be converted to dates with to_datetime. It enables grouping by month, week or day.
Example
df['mois'] = df['date'].dt.month