Skip to content

Instantly share code, notes, and snippets.

@andeemarks
Created May 8, 2019 06:55
Show Gist options
  • Save andeemarks/7b818895081e148993447db1f0f3319f to your computer and use it in GitHub Desktop.
Save andeemarks/7b818895081e148993447db1f0f3319f to your computer and use it in GitHub Desktop.
import csv
import pandas as pd
events = pd.read_csv('data/temperature_events.zip',
compression='infer',
parse_dates={'event_time_index': ['event_time']},
index_col='event_time_index'
)
maxtemps = events.resample('5Min').max()
mintemps = events.resample('5Min').min()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment