Check Values Corresponding To The Pd.idxmin() And Filter With Some Conditions
Sorry, I couldnt find any good title for it. Feel free to change it. This is my sample dataframe ID,Val1,Val2,Val3 1,10,9,11 2,14,15,16 3,17,18,1 1,22,25,3 I want to check row by
Solution 1:
You can do min
with first dataframe
df1.loc[df.iloc[:,1:].min(1)<4]
Out[270]:
ID New
2 3 Val3
3 1 Val3
Post a Comment for "Check Values Corresponding To The Pd.idxmin() And Filter With Some Conditions"