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

[BUG] Series.rename(None) does not rename existing name to None #14076

Closed
mroeschke opened this issue Sep 11, 2023 · 0 comments · Fixed by #14080
Closed

[BUG] Series.rename(None) does not rename existing name to None #14076

mroeschke opened this issue Sep 11, 2023 · 0 comments · Fixed by #14080
Assignees
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@mroeschke
Copy link
Contributor

Describe the bug
Series.rename(None) does not rename existing name to None

Steps/Code to reproduce bug

In [1]: from cudf import *

In [2]: ser = Series([1, 2], name="foo")

In [3]: ser.rename(None)
Out[3]: 
0    1
1    2
Name: foo, dtype: int64

In [8]: ser.to_pandas().rename(None)
Out[8]: 
0    1
1    2
dtype: int64

Expected behavior

In [3]: ser.rename(None)
Out[3]: 
0    1
1    2
dtype: int64

The default index=None probably needs to be change to a no default sentinel.

Environment overview (please complete the following information)

  • Environment location: Bare-metal
  • Method of cuDF install: conda
    • If method of install is [Docker], provide docker pull & docker run commands used

Environment details
Please run and paste the output of the cudf/print_env.sh script here, to gather any other relevant environment details

Additional context
Add any other context about the problem here.

@mroeschke mroeschke added bug Something isn't working dask-cudf Python Affects Python cuDF API. and removed dask-cudf labels Sep 11, 2023
@galipremsagar galipremsagar self-assigned this Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants