need to group sequence of letters while keeping the order in pandas or/and python : noobie here. in a hurry to figure this out.
So new, I can not even figure to do a simple posting. Columns get out of whack. So here is a pic. pic always works

[my humble question][1]

someone answered a similar question. but using oracle sql. I only have pandas and python available.

https://stackoverflow.com/questions/16987174/group-rows-keeping-the-order-of-values
[done with sql][1]


  [1]: https://i.stack.imgur.com/7XIHo.png