Skip to content

Instantly share code, notes, and snippets.

import collections
import json
import sys
if len(sys.argv) < 2 or sys.argv[1] not in ["projects", "calls"]:
print("Usage: projects|calls [limit]", file = sys.stderr)
smowton /
Created Jul 30, 2020
Python to add 7-day rolling sum to a CSV
import datetime
import sys
# Adds a 7-day rolling sum to a CSV
# Input: date,cases
# date format: yyyy-mm-dd
# Output: date,cases,last7days