please help me please to find out the way how to check if "chosen_date" is in range between columns "date1" and "date2".
from datetime import datetime
chosen_date = datetime.today().strftime("%Y-%m-%d")
date1 date2
2000-06-02 2000-06-02
2000-06-03 2000-06-02
2000-06-04 2000-06-02
2000-06-05 2000-06-02
2000-06-06 2000-06-02
2000-06-07 2000-06-02
As alternative to @mozway's answer you can consider using an extra column and use
between
.Data
Add chosen_date as column
Check if chosen_date is in range