diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6c80ab9d87e33..ae1f413a9e2bf 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4885,11 +4885,12 @@ def describe(self, percentiles=None, include=None, exclude=None): percentiles = np.hstack([lh, 0.5, uh]) def pretty_name(x): + decimal_place = str(x)[::-1].find('.')-2 x *= 100 if x == int(x): return '%.0f%%' % x else: - return '%.1f%%' % x + return '%.*f%%' % (decimal_place, x) def describe_numeric_1d(series, percentiles): stat_index = (['count', 'mean', 'std', 'min'] +