[Question] How do I work with a column with multiple mode?

Open
#3,494 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
data

Research direction

Start with the column.mode() API and the existing datatable documentation for mode calculation. Clarify whether multiple modes are supported for this input and document the expected behavior or usage; the documentation should directly answer how to obtain all modes.

Written by the indexing model from the issue text.

Description

For example, a column records each of [0,1,2,3] for 3000 counts and records [4,5,6] for (199,299,399) counts. How should I get a list of mode numbers like [0,1,2,3]? It only returns 0 when I run clolumn.mode() in this case.

Thanks in advance!

Dominant language
C++
Stars
1.9k
Forks
164
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from h2oai/datatable

All issues in h2oai/datatable

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.