Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. #The below outputs the number of houses that have ANY sample that is greater than or equal to the actionable lead level
  2. def make2dList(rows, cols):
  3. a=[]
  4. i= 0
  5. for row in range(rows):
  6.  
  7. a += [[lead1_mgL[i], lead2_mgL [i], lead3_mgL[i]]]
  8. i += 1
  9. return a
  10.  
  11. rows = 271
  12. cols = 3
  13.  
  14. a = make2dList(rows, cols)
  15.  
  16. a = np.array(a)
  17.  
  18. def make2dList(rows, cols):
  19. b=[]
  20. z= 0
  21. for row in range(rows):
  22.  
  23. b += [a[z].max()]
  24. z += 1
  25. return b
  26.  
  27. rows = 271
  28. cols = 1
  29.  
  30.  
  31. b = make2dList(rows, cols)
  32.  
  33. b = np.array(b)
  34.  
  35. action = (b >= 0.015).sum()
  36.  
  37. print (action)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement