I have a dataframe with 3 columns: x, y, time. There are a few thousand rows.
What I want to do is retrieve the row with the minimum time but I would like that the minim
Try this:
In [69]: df.loc[df.time>0, 'time'].idxmin() Out[69]: 3
or
In [72]: df.loc[[df.loc[df.time>0, 'time'].idxmin()]] Out[72]: x y time 3 240 19 9.7