I\'m trying to do a specific pandas operation but can\'t figure out how. Suppose the table below is my original table.