New Columns
Last updated
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
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 updated