Skip to content

CLN: Simplify to_masked implementation #52920

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

Merged
merged 2 commits into from
Apr 28, 2023

Conversation

phofl
Copy link
Member

@phofl phofl commented Apr 25, 2023

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

@phofl phofl requested a review from jbrockmendel April 25, 2023 21:09
@rhshadrach rhshadrach added Clean Arrow pyarrow functionality labels Apr 25, 2023
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

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

Very nice clean up, thanks @phofl

else:
raise NotImplementedError

dtype = _arrow_dtype_mapping()[pa_dtype]
Copy link
Member

Choose a reason for hiding this comment

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

could we simplify even more by just doing self.dtype.numpy_dtype? Aside from that, LGTM

Copy link
Member Author

Choose a reason for hiding this comment

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

I'd prefer keeping the mask stuff, this should make the conversion faster

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good.

@mroeschke mroeschke added this to the 2.1 milestone Apr 28, 2023
@mroeschke mroeschke merged commit 5106204 into pandas-dev:main Apr 28, 2023
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the cln_simplify_to_masked branch April 28, 2023 21:55
topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 7, 2023
Rylie-W pushed a commit to Rylie-W/pandas that referenced this pull request May 19, 2023
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Clean
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants