Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pandas equivalent of value_counts? #14

Open
Den1al opened this issue Oct 22, 2017 · 1 comment
Open

Pandas equivalent of value_counts? #14

Den1al opened this issue Oct 22, 2017 · 1 comment

Comments

@Den1al
Copy link

Den1al commented Oct 22, 2017

It would be very nice to have the pandas equivalent function value_counts

@onesuper
Copy link
Owner

pandasticsearch currently does not provide Series-like data object and value_counts operator.

Calculating value_counts on a column (e.g. tag) could be expressed in terms aggregation:

df.groupby(df.tags.terms()) \
    .to_pandas()

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants