I have a column that contains a date range and I'd just like to have it extracted to the start and end dates respectively. Not sure if this is doable with datetime.strptime directly
df_have = pd.DataFrame([[1, '01 Jan 2019-04 Jan 2019'], [2, '07 Jan 2019-11 Jan 2019']], columns=['Index', 'Range']) Index Range 0 1 01 Jan 2019-04 Jan 2019 1 2 07 Jan 2019-11 Jan 2019 df_want = pd.DataFrame([[1, '01 Jan 2019', '04 Jan 2019'], [2, '07 Jan 2019', '11 Jan 2019']], columns=['Index', 'Start', 'End']) Index Start End 0 1 01 Jan 2019 04 Jan 2019 1 2 07 Jan 2019 11 Jan 2019 Thanks