I have the following dataframe and I want to create a new dataframe with one column being unique strikes (no repetition) and one index (TimeUntilExpiration-unique values) with the Mid values being the values that corresponds to a unique combination of TimeUntilExpiration and Strike.
 TimeUntilExpiration  Strike    Mid
0               0.010959   22.75  2.325
1               0.010959   23.00  2.200
2               0.010959   23.25  2.100
3               0.010959   23.50  1.975
4               0.010959   23.75  1.875
..                   ...     ...    ...
307             2.043836   25.00  1.455
308             2.043836   26.00  1.015
309             2.043836   27.00  2.795
310             2.043836   28.00  0.395
311             2.043836   29.00  0.205
Tried so many ways and mapping but nothing seemed to work. Appreciate any help:)
 
     
    