I have data in consective rows, however they are sorted in name column, i.e. (which is 'A' as for now but could change)
>    A      B   C
>     Name1 123 rdt
>     Name1 256 efh
>     Name1 456 ikj
>     Name2 123 rfa
>     Name3 654 xxd
>     Name3 846 olp
>     Name6 841 yuf
I want to insert a row (or two, any number of rows) after each group of names i.e. and sum colum 'B'
  A     B   C
    Name1   123 rdt
    Name1   256 efh
    Name1   456 ikj
        =sum(above number of Name1s)
    Name2   123 rfa
        =sum(above number of Name2s)
    Name3   654 xxd
    Name3   846 olp
        =sum(above number of Name3s)
    Name6   841 yuf
I have similar problem to the question here AWK: Insert a row after each group of data AWK: Insert a row after each group of data but with Excel.
Also, is it possible to do that in Python with openpyxl, if so how? Please!
Thank you