daily pastebin goal
91%
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. РАС   Норма
  2. Абакан         0    3
  3. Альметьевск 3391    2
  4. Анапа       5229    5
  5. Ангарск     1421    3
  6. Арзамас     4106    11
  7. Армавир     4979    0
  8.    
  9. mask = df['РАС'] != 0
  10.  
  11. res = df.loc[[(df.loc[mask,'РАС'] / df.loc[mask,'Норма']).idxmin()]]
  12.    
  13. In [126]: res
  14. Out[126]:
  15.           РАС  Норма
  16. Арзамас  4106     11
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top