I have pandas dataframe include a column a with content like this '<152/abcx>' ,'<42/da>', '<2/kiw>'. What I want to do is based on the content , remove "<",">", and create two new separate column like this column b : 152 ; 42; 2, column c: 'abcx', 'da', 'kiw'.
df.a.str[df.a.str.find('<')+1:df.a.str.find('/')-1]
the code I tried doesn't work