Skip to content

Map/transform does not add a column but creates a new DataFrame with only the new column #304

@m4ttes4

Description

@m4ttes4

Map function do not modify the dataframe as expected ?

Minimal Reproducible Example:

using DataFrames, TableTransforms

A = DataFrame(a = 1)

A` is a DataFrame with one column: :a = 1

Using pipeline with Map/transform
B = A |> Map(:a => sum => :b)

Result:
B will be a new DataFrame with only one column :b, which equals 2 and A is the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions