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

[REVIEW] ignore list dtypes for select_dtype, similar to pandas #6928

Closed

Conversation

jpurviance
Copy link

Closes #6919

Prevents select dtypes failure when list dyptes are in dataframe. Follows pandas API.

@jpurviance jpurviance requested a review from a team as a code owner December 6, 2020 00:41
@jpurviance jpurviance requested review from shwina and isVoid December 6, 2020 00:41
@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

2 similar comments
@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

@GPUtester
Copy link
Collaborator

Can one of the admins verify this patch?

@harrism harrism changed the title [REVIEW] ignore list dtypes for select_dypte, similar to pandas [REVIEW] ignore list dtypes for select_dtype, similar to pandas Dec 7, 2020
@shwina
Copy link
Contributor

shwina commented Dec 7, 2020

ok to test

1 similar comment
@kkraus14
Copy link
Collaborator

kkraus14 commented Dec 7, 2020

ok to test

@GPUtester
Copy link
Collaborator

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

@codecov
Copy link

codecov bot commented Dec 7, 2020

Codecov Report

Merging #6928 (c2b42e8) into branch-0.17 (bd321d1) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.17    #6928      +/-   ##
===============================================
- Coverage        81.95%   81.94%   -0.01%     
===============================================
  Files               96       96              
  Lines            16294    16291       -3     
===============================================
- Hits             13353    13350       -3     
  Misses            2941     2941              
Impacted Files Coverage Δ
python/cudf/cudf/core/dataframe.py 90.77% <100.00%> (ø)
python/cudf/cudf/utils/dtypes.py 89.10% <100.00%> (ø)
python/cudf/cudf/utils/gpu_utils.py 53.65% <0.00%> (-4.88%) ⬇️
python/cudf/cudf/core/abc.py 87.23% <0.00%> (-4.26%) ⬇️
python/cudf/cudf/_fuzz_testing/fuzzer.py 0.00% <0.00%> (ø)
python/cudf/cudf/utils/hash_vocab_utils.py 100.00% <0.00%> (ø)
python/cudf/cudf/core/dtypes.py 92.30% <0.00%> (+1.92%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd321d1...c2b42e8. Read the comment docs.

@@ -6741,7 +6741,7 @@ def select_dtypes(self, include=None, exclude=None):
# category handling
if is_categorical_dtype(i_dtype):
include_subtypes.add(i_dtype)
elif issubclass(dtype.type, i_dtype):
elif type(dtype.type) == type and issubclass(dtype.type, i_dtype):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does this change exclude list types specifically?

@kkraus14
Copy link
Collaborator

kkraus14 commented Feb 2, 2021

Given this PR has gone stale I'm going to close it. @jpurviance if you're interested in updating this please open a new PR targeted at branch-0.19.

@kkraus14 kkraus14 closed this Feb 2, 2021
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

Successfully merging this pull request may close these issues.

[BUG]Select dtypes fails if list dtypes present in dataframe
4 participants