We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d9b513 commit 9d9337eCopy full SHA for 9d9337e
pandas/core/common.py
@@ -491,10 +491,7 @@ def set_eng_float_format(precision=3, use_eng_prefix=False):
491
_float_format = EngFormatter(precision, use_eng_prefix)
492
_column_space = max(12, precision + 9)
493
494
-def _float_format(x):
495
- str_repr = '% .4g' % x
496
- return str_repr
497
-
+_float_format = lambda x: '% .4g' % x
498
_column_space = 12
499
_max_rows = 500
500
_max_columns = 0
@@ -523,7 +520,7 @@ def _just_help(x):
523
520
else:
524
521
formatted = _float_format(s)
525
522
526
- # if we pass max_width, pad-zero the floats so all are same in column
+ # if we pass col_width, pad-zero the floats so all are same in column
527
if col_width is not None and formatted != ' 0':
528
padzeros = col_width - len(formatted)
529
if padzeros > 0:
0 commit comments