|
|
|
|
|
by throwamon
1574 days ago
|
|
This is not a new idea. siuba (a dplyr-like Pandas alternative) is one project that does it, and it also has a "pipeline operator": https://github.com/machow/siuba (mtcars
>> group_by(_.cyl)
>> summarize(avg_hp = _.hp.mean())
) (Edit: ok, it seems siuba doesn't have the "parameter fixing" thing.) Related: Coconut - a functional superset of Python - https://github.com/evhub/coconut range(10) |> map$(pow$(?, 2)) |> list There were others but I can't remember which now. |
|