Skip to content

Instantly share code, notes, and snippets.

View extcalls.py
#!/usr/bin/python3
import collections
import json
import sys
if len(sys.argv) < 2 or sys.argv[1] not in ["projects", "calls"]:
print("Usage: extcalls.py projects|calls [limit]", file = sys.stderr)
sys.exit(1)
@smowton
smowton / 7daysum.py
Created Jul 30, 2020
Python to add 7-day rolling sum to a CSV
View 7daysum.py
#!/usr/bin/python
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