Skip to content

Instantly share code, notes, and snippets.

@qqpann
Created September 1, 2018 17:03
Show Gist options
  • Save qqpann/ddeb6968fe3ebba3e5ae9b083edbe1bd to your computer and use it in GitHub Desktop.
Save qqpann/ddeb6968fe3ebba3e5ae9b083edbe1bd to your computer and use it in GitHub Desktop.
[Numpy vectorize] Vectorize a function to use for array. #numpy #python
x = np.arange(3000)
vet = np.vectorize(elo2tier)
y = vet(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment