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] Backstick support in DataFrame.query() method #3000

Open
miguelusque opened this issue Oct 8, 2019 · 0 comments
Open

[FEA] Backstick support in DataFrame.query() method #3000

miguelusque opened this issue Oct 8, 2019 · 0 comments
Labels
feature request New feature or request Python Affects Python cuDF API.

Comments

@miguelusque
Copy link
Member

Is your feature request related to a problem? Please describe.
Hi,

While trying to use the DataFrame.query() with columns whose name is a string with blank spaces, I have noticed that I didn't know how to do that with RAPIDS nor Pandas.

Example below:

df = pd.DataFrame({'A': range(1, 6), 'B': range(10, 0, -2), 'C C': range(10, 5, -1)})
df.query('B == `C C`')

I have gone to Pandas doc, and I have found they support the use of backstick from version 0.25.1. Backstick has been deprecated in Python 3, but it has been introduced in Pandas to accomplish the scenario above.

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.query.html

Describe the solution you'd like
I'd like to have 'backstick' support in .query method in cudf.

Describe alternatives you've considered
As a workaround:
df[df.B == df['C C']]

Additional context
Not a stopper at all. I have just thought it might be handy to have backstick support in RAPIDS cuDF.

@miguelusque miguelusque added Needs Triage Need team to review and classify feature request New feature or request labels Oct 8, 2019
@kkraus14 kkraus14 added Python Affects Python cuDF API. and removed Needs Triage Need team to review and classify labels Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request Python Affects Python cuDF API.
Projects
Status: No status
Development

No branches or pull requests

3 participants