'How to keep all monday from a datetime
I'm looking to keep all the Monday from a df. I have a date column with for exemple value like this 2014-01-02 00:00:00+00:00.
So far i have succeeded to extract the days of the week like this (0 = monday):
date = pd.date_range('Beginning', 'End', freq='D').to_series()
date = date.dt.dayofweek
I'm stuck because I have trouble to keep only the Monday. Any idea how I should do? (Maybe the problem come from the code above)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
