This is my dataframe
ID Date Value Final Value
0 9560 12/15/2021 30 5.0
1 9560 07/3/2021 25 5.0
2 9560 03/03/2021 20 20.0
3 9712 08/20/2021 15 5.0
4 9712 12/31/2021 10 10.0
5 9920 04/11/2021 5 5.0
Here I need to create a another column 'Round Date'. Get the date from 'Date' column if date is greater than 15 Date should be round off to the beginning date of that month or else begininng date of next month. The expected output is given below.
ID Date Value Final Value Round Date
0 9560 12/15/2021 30 5.0 12/01/2021
1 9560 07/3/2021 25 5.0 07/01/2021
2 9560 03/03/2021 20 20.0 03/01/2021
3 9712 08/20/2021 15 5.0 09/01/2021
4 9712 12/31/2021 10 10.0 01/01/2022
5 9920 04/11/2021 5 5.0 04/01/2021