DataFrame.withColumn

DataFrame withColumn(Series col) @safe pure

Adds or replaces one column by name: an existing column of that name is replaced in place, otherwise the column is appended (with a height check).

Parameters

colthe column to add or replace

Returns

the new frame.

Throws

DataFrameException when the height differs from the frame's.