I have a pandas multiindex with mostly numerical values, but some None, NaN, or "-" in the data as well. Something like this:
0 1 2 3
bar one -0.096648 -0.080298 0.859359 -0.030288
two NaN -0.431791 1.923893 -1.544845
thr -0.358526 1.416211 1.589617 0.284130
baz one 0.639951 -0.008833 - 0.042315
two 0.705281 None -1.108522 0.471676
Now I need to identify for each level 0 index which row has the smallest numerical value in column 0 and extract value for column 3 for that row. (ignoring NaN, None and -)
For example, for 'bar' I compare -0.096648, NaN, -0.358526 and the smallest of these is -0.358526 so I want the value 0.284130 (from the column 3)
I'm sure this is simple, but I'm not very familiar with these multi-index tables and just got lost and frustrated.