Created
November 2, 2021 13:05
-
-
Save JonasMoss/11bd9ed98ba517a850980fc623d67f94 to your computer and use it in GitHub Desktop.
Exercise function!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import Counter | |
def f(i, s): | |
total = np.cumsum([0] + list(Counter(coding(s)).values())) | |
total = total / total[-1] | |
values = np.diff(total) | |
return values[i-1] | |
coding(data_student['apply'],f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment