Skip to content

Commit dfd2926

Browse files
committed
ENH: make eng formatter a bit prettier (add leading zero to positive numbers
1 parent b75c4d3 commit dfd2926

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,11 @@ def __call__(self, num):
482482
elif self.precision == 0:
483483
format_str = u"%i%s"
484484
elif self.precision > 0:
485-
format_str = (u"%%.%if%%s" % self.precision)
485+
format_str = (u"%% .%if%%s" % self.precision)
486486

487487
formatted = format_str % (mant, prefix)
488488

489-
return formatted.strip()
489+
return formatted #.strip()
490490

491491
def set_eng_float_format(precision=3, use_eng_prefix=False):
492492
"""

0 commit comments

Comments
 (0)