Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.