Trying to subset a dataframe, ultimately want to export a certain month and year (Say November 2020) to a CSV. But I'm stuck at the selection part, the date column is in DD/MM/YYYY format. My attempt -

```
csv = r"C:\Documents\Transactions.csv"
current_month = 11
current_year = 2020

data =pd.read_csv(csv, sep=',', index_col = None)

df = data[pd.to_datetime(data['Date'],dayfirst=True).dt.month == current_month &(pd.to_datetime(data['Date']).dt.year==current_year)]

print(df)

```

Result is the rows with the correct year, but includes all months whereas I want it restricted the current\_month variable. Any help appreciated.