Skip to content

Instantly share code, notes, and snippets.

@aneesha
Created June 6, 2018 04:46
Show Gist options
  • Save aneesha/33e42d754370373884c1a6a3913a92ba to your computer and use it in GitHub Desktop.
Save aneesha/33e42d754370373884c1a6a3913a92ba to your computer and use it in GitHub Desktop.
import dask.dataframe as dd
df = dd.read_csv('logs/2018-*.*.csv', parse_dates=['timestamp'])
df.groupby(df.timestamp.dt.hour).value.mean().compute()
@czlsws163
Copy link

Thanks for your share. Would you mind to share your data set "2018-..csv".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment