Skip to content

Instantly share code, notes, and snippets.

@MachinesAreUs
Created August 13, 2015 20:30
Show Gist options
  • Save MachinesAreUs/1747003bab96350ad253 to your computer and use it in GitHub Desktop.
Save MachinesAreUs/1747003bab96350ad253 to your computer and use it in GitHub Desktop.
Calculate basic statistics from a numeric input stream
# Requires pythonpy
cat numbers | py --ji -l 'min(l), max(l), numpy.median(l), numpy.mean(l)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment