Excel function ->
=IFERROR(MID(E14330,FIND("-0",E14330)-3,9),"None")
I have tried the following and it works but is very slow. I have also tried using lambda function but that didn't help either (got syntax error)
get_JournalData_05['PO'] = ""
for i, row in get_JournalData_05.iterrows():
if get_JournalData_05['zero index'].iloc[i] == -1:
get_JournalData_05['PO'] = 'None'
else:
get_JournalData_05['PO'] = get_JournalData_05['Description'].iloc[i][int(get_JournalData_05['zero index'].iloc[i] - 3):int(get_JournalData_05['zero index'].iloc[i] + 9)]
get_JournalData_05['zero index']
is the column with the index I found using:
get_JournalData_05['zero index'] = get_JournalData_05['Description'].str.find('-0')
I need to fill the PO column based on extraction from the Description column.