Skip to content

Instantly share code, notes, and snippets.

@vosbs
Created April 21, 2020 18:29
Show Gist options
  • Save vosbs/d6c19f64cf6a31ef7d0930169d5ddc75 to your computer and use it in GitHub Desktop.
Save vosbs/d6c19f64cf6a31ef7d0930169d5ddc75 to your computer and use it in GitHub Desktop.
m5000_4
test = test.assign(I_new=test['I'] + (test['ml_speed'] - test['speed']) * 2000)
print((test.I_new > limit).sum() / test.shape[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment