datachain icon indicating copy to clipboard operation
datachain copied to clipboard

mutate: overwrite columns

Open dmpetrov opened this issue 1 year ago • 0 comments

#306 is a workaround that throws an exception. But we need to implement this functionality with a potential schema change.

This command should change my_dist to another value with a new type (int --> float):

dc.select("file", "my_dist").mutate(my_dist=dc.column("my_dist") * 2* 3.14)

dmpetrov avatar Aug 21 '24 23:08 dmpetrov