Skip to content

REF: Avoid post-processing in blockwise op #35356

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 5 commits into from
Aug 8, 2020

Conversation

jbrockmendel
Copy link
Member

Small step towards #34714

cc @TomAugspurger IIRC you implemented split_frames/split_items, which this removes


no_result = object()

def cast_result_block(result, block: "Block", how: str) -> "Block":
Copy link
Contributor

Choose a reason for hiding this comment

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

can you put this function elsewhere (module level somewhere) and import, in-line functions make much harder to grok.

Copy link
Contributor

Choose a reason for hiding this comment

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

this likely actually belongs as a method on block itself no?

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 dont think this merits a Block method. There will be further refactoring coming up with the goal of having this iteration-over-blocks go through a BlockManager method

Copy link
Member Author

Choose a reason for hiding this comment

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

@jreback is this a deal-breaker? id like to postpone this decision until after implementing the BlockManager method that this/apply/ewm eventually call

Copy link
Contributor

Choose a reason for hiding this comment

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

ok sounds good

@jreback jreback added Groupby Internals Related to non-user accessible pandas implementation labels Jul 20, 2020
@jreback jreback added this to the 1.2 milestone Aug 8, 2020
@jreback jreback merged commit 188ce73 into pandas-dev:master Aug 8, 2020
@jbrockmendel jbrockmendel deleted the ref-mgr-transform branch August 8, 2020 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants