Skip to content

value_counts: name and index'es name #25795

@kuraga

Description

@kuraga

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions