Skip to content

Commit 58fbc7f

Browse files
committed
fixing docstring tests
1 parent d0b193a commit 58fbc7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/base.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -999,9 +999,9 @@ def value_counts(
999999
>>> index = pd.Index([3, 1, 2, 3, 4, np.nan])
10001000
>>> index.value_counts()
10011001
3.0 2
1002+
1.0 1
10021003
2.0 1
10031004
4.0 1
1004-
1.0 1
10051005
dtype: int64
10061006
10071007
With `normalize` set to `True`, returns the relative frequency by
@@ -1010,9 +1010,9 @@ def value_counts(
10101010
>>> s = pd.Series([3, 1, 2, 3, 4, np.nan])
10111011
>>> s.value_counts(normalize=True)
10121012
3.0 0.4
1013+
1.0 0.2
10131014
2.0 0.2
10141015
4.0 0.2
1015-
1.0 0.2
10161016
dtype: float64
10171017
10181018
**bins**
@@ -1034,10 +1034,10 @@ def value_counts(
10341034
10351035
>>> s.value_counts(dropna=False)
10361036
3.0 2
1037+
1.0 1
10371038
2.0 1
1038-
NaN 1
10391039
4.0 1
1040-
1.0 1
1040+
NaN 1
10411041
dtype: int64
10421042
"""
10431043
result = value_counts(

0 commit comments

Comments
 (0)