I have a pandas column called time and it contains the year and semester. For instance in format ('YYYYSX') 2018S1. I want to convert the time format in YYYYSX into date
Input
time
1 2019S2
2 2019S2
3 2020S1
output
time
1 2019-09-30
2 2019-10-31
3 2020-01-31