I have a dataframe in the following format.
1 2 3 4
Data
2001-07-30 0.363354 27.428261 14.639130 6.763423
... ... ... ... ...
2015-06-15 0.039085 28.562948 14.000722 8.605911
I wish to slice by month. Thus for example I want to select only data from month 5 and store this in a new variable. I have found several answers to similar questions. These however do not provide the intended result.
Examples of questions and answers in this area:
- Pandas DataFrame slicing by day/hour/minute
- python pandas dataframe slicing by date conditions
- pandas, python - how to select specific times in timeseries
I am new to timeseries analysis with Python and Pandas so any push to the right direction or reading material will be appreciated.