From 98a50e280c3038cea60ae43a92cca6d7d7163e49 Mon Sep 17 00:00:00 2001 From: dricottone Date: Fri, 29 Jun 2018 21:02:49 -0400 Subject: [PATCH] Quick fix to the README. --- README.md | 2 +- hist.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f3da56..2d189f6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -syntax: `unicode_hist.hist(list_object [, number_bins])` +syntax: `hist.hist(list_object [, number_bins])` - list_object can be any list-like object (lists, tuples, etc.) - number_bins can be any numeric type (default is 1) diff --git a/hist.py b/hist.py index 1de3353..642ab69 100644 --- a/hist.py +++ b/hist.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -def _bin_iter (avg, bin_width, num_bins): +def _bin_iter(avg, bin_width, num_bins): bin_ = int(avg - (bin_width * (num_bins // 2))) a = 0 while a < num_bins: @@ -8,7 +8,7 @@ def _bin_iter (avg, bin_width, num_bins): bin_ = bin_ + bin_width a = a + 1 -def hist (args, bin_num=1): +def hist(args, bin_num=1): """ Creates a formatted unicode histogram. Requires an iterable of numeric values. Optionally set number of bins. By default, creates a single bin -- 2.45.2