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]Getting dtypes on an empty cuDF dataframe raises a futurewarning #11620

Closed
VibhuJawa opened this issue Aug 29, 2022 · 1 comment · Fixed by #11761
Closed

[BUG]Getting dtypes on an empty cuDF dataframe raises a futurewarning #11620

VibhuJawa opened this issue Aug 29, 2022 · 1 comment · Fixed by #11761
Assignees
Labels
bug Something isn't working Python Affects Python cuDF API.

Comments

@VibhuJawa
Copy link
Member

Describe the bug

Getting dtypes on an empty dataframe raises a future warning that was confusing to some users. Might be good to look into triaging it and ensuring if we want this behavior or not.

Steps/Code to reproduce bug

>>> import cudf
>>> cudf.DataFrame().dtypes
/datasets/vjawa/miniconda3/envs/cugraph_dev/lib/python3.9/site-packages/cudf/core/dataframe.py:1059: FutureWarning: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning.
  return pd.Series(self._dtypes)
Series([], dtype: float64)
@VibhuJawa VibhuJawa added bug Something isn't working Needs Triage Need team to review and classify labels Aug 29, 2022
@github-actions github-actions bot added this to Needs prioritizing in Bug Squashing Aug 29, 2022
@VibhuJawa
Copy link
Member Author

related cugraph issue: rapidsai/cugraph#2619

@shwina shwina added this to Issue-Needs prioritizing in v22.10 Release via automation Aug 30, 2022
@shwina shwina removed this from Needs prioritizing in Bug Squashing Aug 30, 2022
@shwina shwina moved this from Issue-Needs prioritizing to Issue-P1 in v22.10 Release Aug 30, 2022
@galipremsagar galipremsagar self-assigned this Aug 31, 2022
@galipremsagar galipremsagar added Python Affects Python cuDF API. and removed Needs Triage Need team to review and classify labels Sep 23, 2022
@rapids-bot rapids-bot bot closed this as completed in fb703b1 Sep 26, 2022
v22.10 Release automation moved this from Issue-P1 to Done Sep 26, 2022
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
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants