make_constant
Creates a new constant column (with a single unique value) of the same length as the input column.
make_constant(input: column, {
"param": value,
...
}) -> (output: column)
make_constant(input: column, {
"param": value,
...
}) -> (output: column)
An arbitrary input column, used only to match its dimension (number of rows).
Column filled with copies of the value specified in parameters. The data type of the output column will be the one specified by out_type.
The value to fill the new column with.
The data type of the output column depends on this value and the out_type
parameter.
Select types using their name.
Values must be one of the following:
category
date
number
boolean
url
sex
text
list[number]
list[category]
list[url]
list[boolean]
list[date]
Was this page helpful?
make_constant(input: column, {
"param": value,
...
}) -> (output: column)