• hey sorry forgot to mention this before

    arizona alabama 788 is also there in original data

    But lets say there is

    arizona alabama 0 i.e tonnage value=0

    data also there

    so what i want is not to show this data in the output

    ie. if there is no tonnage value in the return direction then output table should not have such values

    Also

    the original table is randomly arranged with the data

    what i want is the output to be only in this format

    Arizona Alabama 788

    Alabama Arizona 34

    ie. consecutively arranged in this way.