Skip to content

Instantly share code, notes, and snippets.

@straussmaximilian
Created September 21, 2019 13:01
Show Gist options
  • Save straussmaximilian/bfe464146b21c7fb7b0b671423d2cd9e to your computer and use it in GitHub Desktop.
Save straussmaximilian/bfe464146b21c7fb7b0b671423d2cd9e to your computer and use it in GitHub Desktop.
import perfplot
plt.figure(figsize=(10, 10))
plt.title('Quantitative Comparison of Filtering Speeds')
perfplot.show(
setup=random_array,
kernels=[loop, boolean_index, loop_numba, boolean_index_numba],
n_range=[2**k for k in range(2, 22)],
logx=True,
logy=True,
equality_check=False,
xlabel='len(df)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment