Skip to content

BUG: value_counts() method in panda Series #60769

@lroque7

Description

@lroque7

Pandas version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pandas.

  • I have confirmed this bug exists on the main branch of pandas.

Reproducible Example

import pandas as pd

s = pd.Series([3, 1, 2, 3, 4, np.nan])
s.value_counts(normalize=True)

Issue Description


TypeError Traceback (most recent call last)
Cell In[737], line 1
----> 1 s = pd.Series([3, 1, 2, 3, 4, np.nan])
2 s.value_counts(normalize=True)

TypeError: 'Index' object is not callable

Expected Behavior

Must create a series and count the unique values

Installed Versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions