I am trying to reference a particular column called 'Unloading point' in order to map my dates to these particular business days. So the dates present in 'Date' column should be mapped based on 'Unloading point'. If there is no data in 'Unloading point' column and if date falls on a weekend then it should just rollback to nearest business day. I am quite new to pandas dataframes. Any help will be deeply appreciated.
Date | Unloading point | Expected Output |
---|---|---|
5/30/2021 | MON-TUE-WED-THU-FRI | 5/31/2021 |
6/11/2021 | MON-TUE-WED-THU-FRI | 6/11/2021 |
6/5/2021 | THU | 6/3/2021 |
6/4/2021 | THU | 6/3/2021 |
5/27/2021 | THU | 5/27/2021 |
5/29/2021 | THU | 5/27/2021 |
5/29/2021 | 5/28/2021 | |
6/6/2021 | MON-TUE-WED-THU-FRI | 6/7/2021 |
6/1/2021 | 6/1/2021 | |
5/29/2021 | TUE | 5/25/2021 |
6/1/2021 | 6/1/2021 | |
7/31/2021 | THU | 7/29/2021 |
6/1/2021 | WED | 6/2/2021 |
5/26/2021 | WED | 5/26/2021 |
6/14/2021 | MON-TUE-WED-THU-FRI | 6/14/2021 |
5/27/2021 | MON-TUE-WED | 5/26/2021 |
6/15/2021 | MON-TUE-WED | 6/15/2021 |
5/22/2021 | TUE-WED | 5/19/2021 |
6/10/2021 | MON-TUE-WED | 6/10/2021 |
6/24/2021 | TUE-FRI | 6/22/2021 |