From 5cb5b3bdf3be4551ccb5bdf76b10a261a25f2a10 Mon Sep 17 00:00:00 2001 From: Egor Dranischnikow Date: Thu, 1 Oct 2020 00:03:40 +0200 Subject: [PATCH] fixing doctest: the order of 1,4,2 depends on hash and is not unique --- pandas/core/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index 4d5cddc086b2a7..8b93f98877f4b8 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1200,9 +1200,9 @@ def value_counts( >>> s = pd.Series([3, 1, 2, 3, 4, np.nan]) >>> s.value_counts(normalize=True) 3.0 0.4 + 1.0 0.2 4.0 0.2 2.0 0.2 - 1.0 0.2 dtype: float64 **bins**