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

Pipe in Chain style #22

Closed
kongdd opened this issue Apr 25, 2022 · 1 comment
Closed

Pipe in Chain style #22

kongdd opened this issue Apr 25, 2022 · 1 comment

Comments

@kongdd
Copy link

kongdd commented Apr 25, 2022

Any idea how to implement Pipe in Chain style?

@chain df begin
  dropmissing
  filter(:id => >(6), _)
  groupby(:group)
  combine(:age => sum)
end
# Expected:
@pipe df |>
  dropmissing |>
  filter(:id => >(6), _)|>
  groupby(:group) |>
  combine(:age => sum)
@oxinabox
Copy link
Owner

oxinabox commented May 6, 2022

Pipe.jl, by design, does not feature any implict locations.
It is intentionally explict.

There are many similar packages with similar features but slightly different
JuliaLang/julia#5571 (comment)

In particular, as I recall Hose.jl is a fork of Pipe.jl with the implict _ first argument, which you want
https://github.com/FNj/Hose.jl/

@oxinabox oxinabox closed this as completed May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants