I am having a date column in my dataframe
I wanted to filter out the last 14 days from the dataframe using the date column. I tried the below code but it's not working
last_14 = df.filter((df('Date')> date_add(current_timestamp(), -14)).select("Event_Time","User_ID","Impressions","Clicks","URL", "Date")
Event_time, user_id, impressions, clicks, URL is my other columns
Can anyone advise how to do this?