Created
June 3, 2022 18:22
-
-
Save GitHubEmploy/6e956dc92b7c1b6e07451d0b1300634d to your computer and use it in GitHub Desktop.
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
import time | |
import numpy as np | |
rscores = np.random.randint(1, 100, size=100000010) | |
s = time.time() | |
mean_failed = (rscores[rscores < 70]).mean() | |
print(mean_failed) | |
print(f'Numpy: {time.time() - s} seconds') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment