How can I split this line: Basis of the Consolidated <> Financial Statements by setting <> as a delimiter and create a new row which should not affect other columns?
The data looks like this.
I need to do this in Python code and I tried this but its not working:
for i in range(len(df5)):
    
    df5['text'].iloc[i]=str(df5['text'].iloc[i])
    if((math.isnan(df5['note_number'].iloc[i]==False)):
        a=str(df5['text'].iloc[i])
        a=a.strip()
        u=a.split('<>')
        if j<=(len(df5)):
            j=i+1
            df5['text'].iloc[i]=u[0]
            df5['text'].iloc[i]=u[1]
 
    