Skip to content

Way to use renamecols = false from DataFrames.jl? #428

Description

@nathanrboyer

I would like to be able to use the renamecols=false keyword argument from base DataFrames to avoid writing these long column names twice.

    @rtransform! df begin
        $"Type/Grade" = string($"Type/Grade")
        $"Class/Condition/Temper" = string($"Class/Condition/Temper")
    end

I got ERROR: LoadError: ArgumentError: Malformed expression in DataFramesMeta.jl macro when I tried without the lefthand sides.
(You could maybe even assume the user wants to update in place when no LHS are present?)

@rtransform! df begin
    string($"Type/Grade")
    string($"Class/Condition/Temper")
    @kwarg renamecols = false
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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