Python-practice-assignment Exploratory Data Analysis

Hi,
How can I only query the column Date so that I get a dataset with only dates from the time period of 2018 and 2020. Df date_1