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

[FEA] Register Dataframe Accessors #6216

Closed
ericmjl opened this issue Sep 11, 2020 · 0 comments · Fixed by #6302
Closed

[FEA] Register Dataframe Accessors #6216

ericmjl opened this issue Sep 11, 2020 · 0 comments · Fixed by #6302
Assignees
Labels
cuDF (Python) Affects Python cuDF API. feature request New feature or request

Comments

@ericmjl
Copy link

ericmjl commented Sep 11, 2020

Is your feature request related to a problem? Please describe.
I wish cuDF could allow for custom dataframe accessors. That would allow us to port over pyjanitor code to work with cuDFs as well.

What are dataframe accessors?

They are available here: https://pandas.pydata.org/docs/development/extending.html

The gist is that custom dataframe accessors allows us to do things like:

def my_custom_func(df, arg1, arg2, kwarg1, kwarg2):
    return modified_df

# Now, execute
df = df.clean_names().my_custom_func(arg1, arg2, **kwargs)

How might this help?

pyjanitor (for which I am one of the maintainers) provides a series of super convenient data cleaning functions that operate on pandas dataframes. Some of the functions make use of pandas' native API, and can be considered higher-order functions that make routine common pandas snippets. I would like to see this available for cuDF as well; doing so would help me complete the jump to using cuDF!

@ericmjl ericmjl added Needs Triage Need team to review and classify feature request New feature or request labels Sep 11, 2020
@github-actions github-actions bot added this to Needs prioritizing in Feature Planning Sep 11, 2020
@kkraus14 kkraus14 added cuDF (Python) Affects Python cuDF API. and removed Needs Triage Need team to review and classify labels Sep 15, 2020
Feature Planning automation moved this from Needs prioritizing to Closed Sep 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuDF (Python) Affects Python cuDF API. feature request New feature or request
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

3 participants