[OP] Add dropDuplicates() operator

Open
#54 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

The issue names no repository file or test; start by locating existing operator implementations and their tests, then compare the requested behavior with the referenced cuDF drop_duplicates usage. Done means the operator accepts continuous and categorical columns and returns a DataFrame with duplicate rows removed, keeping the first occurrence.

Written by the indexing model from the issue text.

Description

Outbrains

Issue by rnyak
Tuesday May 26, 2020 at 18:00 GMT
Originally opened as https://github.com/rapidsai/recsys/issues/172


Is your operator request related to a problem? Please describe.

dropDuplicates() method is used in the Outbrain W&D model, and it is one of the commonly used methods in data preprocessing.

Describe the solution you'd like
A clear and concise description of the operation you'd like to perform on the column. Please include:

  • Type (Feature Engineering or Preprocessing): Preprocessing
  • input column type(s): Continuous and categorical
  • output column type(s): Continuous and categorical
  • Expected transformation of the data after application: Return DataFrame with duplicate rows removed.

Additional context
cudf has dropDuplicates() method and applied as below:

cdf.drop_duplicates(keep= 'first', inplace=True)

Dominant language
Python
Stars
1.2k
Forks
149
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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 NVIDIA-Merlin/NVTabular

All issues in NVIDIA-Merlin/NVTabular

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.