Skip to content

Instantly share code, notes, and snippets.

@chrisalbon
Created December 21, 2016 18:30
Show Gist options
  • Save chrisalbon/c56ac211e75c55326c9cf5cdd914b9dc to your computer and use it in GitHub Desktop.
Save chrisalbon/c56ac211e75c55326c9cf5cdd914b9dc to your computer and use it in GitHub Desktop.
import pandas as pd
index = pd.date_range('1/1/2000', periods=20000, freq='30min')
series = pd.Series(range(20000), index=index)
series.groupby(series.index.hour).sum()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment