All Questions
1 question
9
votes
1
answer
18k
views
Python Pyspark: Filter for 1 Day Before Current Date Using F.current_date()
I want to filter my data set for all the dates before a certain date. Specifically 1 day before the current date.
I tried the code below:
df = df.filter(F.col('date') <= F.current_date() - 1)...