I have the following dataset
For each year column, I would like to find the max and min values and return both the 'max' and 'min' values together with the corresponding 'Geo' value for each.
For instance, for '1950', '1951', and so on, I would like to produce a dataframe like this one:
This is a similar thread, but the suggested approaches there don't seem to work because my columns have numeric headers, plus my desired result is slightly different.
Any advice would be helpful. Thanks.

