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

Return python lists for __getitem__ calls to list type series #8265

Merged
merged 12 commits into from
May 20, 2021

Conversation

brandon-b-miller
Copy link
Contributor

Make it so that this works:

x = cudf.Series([[1,2,None]])
x[0]
# [1, 2, <NA>]

@brandon-b-miller brandon-b-miller added feature request New feature or request 2 - In Progress Currently a work in progress Python Affects Python cuDF API. Cython non-breaking Non-breaking change labels May 17, 2021
@brandon-b-miller brandon-b-miller self-assigned this May 17, 2021
@brandon-b-miller brandon-b-miller requested a review from a team as a code owner May 17, 2021 21:37
@brandon-b-miller brandon-b-miller added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels May 18, 2021
def test_list_getitem(data):
list_sr = cudf.Series([data])
# __getitem__ shall fill None with cudf.NA
assert pa.scalar(data) == list_sr.to_arrow()[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this actually testing our __getitem__ code path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops :) fixed.

@galipremsagar
Copy link
Contributor

rerun tests

@codecov
Copy link

codecov bot commented May 20, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.06@0b9f178). Click here to learn what that means.
The diff coverage is n/a.

❗ Current head 90aa7b3 differs from pull request most recent head 5e75734. Consider uploading reports for the commit 5e75734 to get more accurate results
Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.06    #8265   +/-   ##
===============================================
  Coverage                ?   82.84%           
===============================================
  Files                   ?      105           
  Lines                   ?    17865           
  Branches                ?        0           
===============================================
  Hits                    ?    14800           
  Misses                  ?     3065           
  Partials                ?        0           

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 0b9f178...5e75734. Read the comment docs.

@brandon-b-miller brandon-b-miller added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team labels May 20, 2021
@brandon-b-miller
Copy link
Contributor Author

@gpucibot merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge feature request New feature or request non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants