New Columns
- Calculated Column: the formula for the new column you want to build
- Alias: name for your columns
- Supports any SQL column functions that are compatible with your data warehouse
Name | Type | Description | Is Optional |
---|---|---|---|
calculated_columns | calculated_column_list | List of SQL formulas to generate new columns | |
ds2 = ds.new_columns(
calculated_columns={
calcuated_column: 'POWER(COLUMN_NAME, 3)',
alias: 'COLUMN_NAME_Cubed'
}
)
ds2.preview()
Last modified 7mo ago