projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change locking boundaries for shared dict. Add a unit test.
[python_utils.git]
/
histogram.py
diff --git
a/histogram.py
b/histogram.py
index 4aa47490122481852ae03e264795509a8794e54e..a899fe9c60cde770eda49dcdd1dade1790e9ec08 100644
(file)
--- a/
histogram.py
+++ b/
histogram.py
@@
-94,11
+94,7
@@
class SimpleHistogram(Generic[T]):
right_end="",
)
label = f'{label_formatter}..{label_formatter}' % (start, end)
right_end="",
)
label = f'{label_formatter}..{label_formatter}' % (start, end)
- txt += (
- f'{label:20}: '
- + bar
- + f"({pop/self.count*100.0:5.2f}% n={pop})\n"
- )
+ txt += f'{label:20}: ' + bar + f"({pop/self.count*100.0:5.2f}% n={pop})\n"
if start == last_bucket_start:
break
return txt
if start == last_bucket_start:
break
return txt