Skip to content

Commit 552f7a3

Browse files
committed
value_counts example
1 parent f2cbd4b commit 552f7a3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/core/arrays/_mixins.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,14 @@ def value_counts(self, dropna: bool = True) -> Series:
485485
Returns
486486
-------
487487
Series
488+
489+
Examples
490+
--------
491+
>>> arr = pd.array([4, 5])
492+
>>> arr.value_counts()
493+
4 1
494+
5 1
495+
Name: count, dtype: Int64
488496
"""
489497
if self.ndim != 1:
490498
raise NotImplementedError

0 commit comments

Comments
 (0)