#Filter the data by displaying data with date >2018:
import datetime as dt
df2[df2['Year'] > dt.date(year > 2018)]
I have checked the documentation and still cant find a way to filter the date to only display rows with year > 2018
#Filter the data by displaying data with date >2018:
import datetime as dt
df2[df2['Year'] > dt.date(year > 2018)]
I have checked the documentation and still cant find a way to filter the date to only display rows with year > 2018