Skip to content

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