Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add a builtin step to delete duplicate rows #146

Open
lisad opened this issue Jun 18, 2024 · 0 comments
Open

Add a builtin step to delete duplicate rows #146

lisad opened this issue Jun 18, 2024 · 0 comments

Comments

@lisad
Copy link
Owner

lisad commented Jun 18, 2024

This is a common need - the builtin would look something a little like this in builtin_steps

def delete_duplicate_rows(columns=None):
    """
    This step factory will build a step to delete rows that are duplicates of each other, based on every value
    or based on a list of columns or column names.
    :param func:
    :return:
    """
    @batch_step(check_size=False)
    def delete_duplicate_rows_step(batch, context, **kwargs):
        # Need an algorithm that is reasonable for now, and doesn't depend on pandas
        return batch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant