Skip to content

Commit ca68f30

Browse files
committed
fixing docstring tests
1 parent d96118f commit ca68f30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,9 +1004,9 @@ def value_counts(
10041004
>>> index = pd.Index([3, 1, 2, 3, 4, np.nan])
10051005
>>> index.value_counts()
10061006
3.0 2
1007+
1.0 1
10071008
2.0 1
10081009
4.0 1
1009-
1.0 1
10101010
dtype: int64
10111011
10121012
With `normalize` set to `True`, returns the relative frequency by
@@ -1015,9 +1015,9 @@ def value_counts(
10151015
>>> s = pd.Series([3, 1, 2, 3, 4, np.nan])
10161016
>>> s.value_counts(normalize=True)
10171017
3.0 0.4
1018+
1.0 0.2
10181019
2.0 0.2
10191020
4.0 0.2
1020-
1.0 0.2
10211021
dtype: float64
10221022
10231023
**bins**
@@ -1039,10 +1039,10 @@ def value_counts(
10391039
10401040
>>> s.value_counts(dropna=False)
10411041
3.0 2
1042+
1.0 1
10421043
2.0 1
1043-
NaN 1
10441044
4.0 1
1045-
1.0 1
1045+
NaN 1
10461046
dtype: int64
10471047
"""
10481048
return value_counts(

0 commit comments

Comments
 (0)