So my code is as follows:
df[\'Dates\'][df[\'Dates\'].index.month == 11]
I was doing a test to see if I could filter the months so it only
In your code there are two issues. First, need to bring column reference after the filtering condition. Second, can either use ".month" with a column or index, but not both. One of the following should work:
df[df.index.month == 11]['Dates'] df[df['Dates'].month == 11]['Dates']