I have a series (with index as shown) appearing as
E1 543
Units1_E 100
E2 553
Units2_E 420
E3 513
Units3_E 110
F1 243
Units1_F 500
F2 450
Units2_F 300
F3 400
Units3_F 200
I am looking to convert it into dataframe such that the output comes as
E_F Units
543 100
553 420
513 110
243 500
450 300
400 200
So the output desired is more like a pair value column.. Am not sure how this could be done efficiently, am thinking of regex to filter the series index ?