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

Add @post_pipe #749

Closed
skrawcz opened this issue Mar 8, 2024 · 1 comment
Closed

Add @post_pipe #749

skrawcz opened this issue Mar 8, 2024 · 1 comment
Labels
decorators enhancement New feature or request

Comments

@skrawcz
Copy link
Collaborator

skrawcz commented Mar 8, 2024

Is your feature request related to a problem? Please describe.
@pipe is nice, but can be a little counter-intuitive to read. i.e. the function parameter declares the dependency, is then modified by @pipe and then passed into the function.

Describe the solution you'd like
@post_pipe would be the opposite of @pipe. The function would declare the dependency, the body of the function would run, and then the @post_pipe steps would run after the function.

@post_pipe(# these run after the function is run.
    step(_transform_1, v=1),
    step(_transform_2, v=2),
)
def A_processed(A: pd.DataFrame) -> pd.DataFrame:
    return A # original A -- could do modifications here.

Describe alternatives you've considered
N/A

Additional context

@skrawcz skrawcz added enhancement New feature or request decorators labels Mar 8, 2024
@elijahbenizzy
Copy link
Collaborator

@skrawcz this is a duplicate #701

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
decorators enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants