Guest User

Untitled

a guest
Jan 15th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def fn(dframe):
  2. if dframe['A'] < 125:
  3. return 935 + 0.2 * dframe['A']
  4.  
  5. elif (dframe['A'] >= 955) and (dframe['A'] <= 974):
  6. return 921.2 + 0.2 * (dframe['A'] - 955)
  7.  
  8. elif (dframe['A'] >= 975) and (dframe['A'] <= 1023):
  9. return 925.2 + 0.2 * (dframe['BCCH'] - 975)
  10.  
  11. elif (dframe['A'] >= 511) and (dframe['A'] <= 885):
  12. return 1805.2 + 0.2 * (dframe['A'] - 512)
Add Comment
Please, Sign In to add comment