We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cc5f23 commit ce8c0daCopy full SHA for ce8c0da
pandas/io/formats/format.py
@@ -948,12 +948,18 @@ def _format(x):
948
is_float_type = lib.map_infer(vals, is_float) & notna(vals)
949
leading_space = is_float_type.any()
950
951
+ adj = _get_adjustment()
952
+ conf_max = get_option("display.max_colwidth")
953
+
954
fmt_values = []
955
for i, v in enumerate(vals):
956
if not is_float_type[i] and leading_space:
957
fmt_values.append(u' {v}'.format(v=_format(v)))
958
elif is_float_type[i]:
959
fmt_values.append(float_format(v))
960
+ elif conf_max is not None and (type(v) is compat.binary_type
961
+ or type(v) is compat.text_type):
962
+ fmt_values.append(u' {v}'.format(v=_format(v[:conf_max*5])))
963
else:
964
965
0 commit comments