Good day!
s = pd.Series(np.arange(10), name='items')
c = s.value_counts()
c.name #=> 'items'
c.index.name #=> None
IMHO that's very strange. Values of c
are quantities/counts/etc. not "items". "Items" are represented in c.index
. No?
What do you think?
Thanks!
Comment From: WillAyd
The name here is simply being carried over from the originating Series. Are you asking for a particular enhancement that differs from that?
Comment From: kuraga
@WillAyd , yes:
c.name #=> 'counts'
c.index.name #=> 'items'
Comment From: MarcoGorelli
Thanks @kuraga for the report - not sure why you closed this, but I've opened a new issue to take your suggestion forwards https://github.com/pandas-dev/pandas/issues/49497