Good morning, I have a data frame:
df1 = pd.DataFrame({'Item_Description': ['dfd_landing BKK_AOT-Airbridge / Jetty', 'dfd_month DEL_Updater Services Pvt Ltd-Office Cleaning'])
I would like to remove everything before the first space so the result would be:
df1 = pd.DataFrame({'Item_Description': ['BKK_AOT-Airbridge / Jetty', 'DEL_Updater Services Pvt Ltd-Office Cleaning'])
I tried with :
df1['Item_Description'] = df1['Item_Description'].str.replace(".*(" ")", "")
but it removes everything.
Is there any way to do it in one line?
Kind regards