Series.value_counts()
also shows categories with count 0.
Thought this would be a bug but according to doc it is intentional.
This makes the output of value_counts inconsistent when switching between category and non-category dtype. Apart from that it blows up the value_counts output for series with many categories.
I would prefer to hide counts (i.e. zero) for non-occuring categories by default and rather consider a parameter dropzero=True
similar to dropna
(see also #5569).
quantumds, codenigma1 and cbarecodenigma1
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4