Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 90 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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