Skip to content

Instantly share code, notes, and snippets.

@GeorgeSeif
Last active December 14, 2019 02:36
Show Gist options
  • Save GeorgeSeif/10eec16d5e3f2ab92226cbc215e7c6dd to your computer and use it in GitHub Desktop.
Save GeorgeSeif/10eec16d5e3f2ab92226cbc215e7c6dd to your computer and use it in GitHub Desktop.
Operation Pandas Time (ms) Dask Time (ms) Speedup
df['price'].mean() 2.6 1.0 2.6
df['price'].max() 2.2 0.6 3.7
df[df['price'] > 250] 13 0.7 18.6
df + df 163 3.4 48.5
df['price'].drop_duplicates() 4.3 0.8 5.4
df['price'].value_counts() 3.8 0.9 4.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment