Skip to content

Feature request: allow @mutate to create new columns #314

@ilyagr

Description

@ilyagr

I would like the following to work:

DataFrame(bad=[1,2], good=[0, 3]) |> @mutate(
			count = _.bad + _.good,
			bad_rate = _.bad/_.count,
			bad_pct =round(_.bad_rate*100;digits=1)
		) 

I don't know a good way to do it currently. I created a forum post asking if anyone else does.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions