Login
Back to bricks list
Introduction Version

TableOperationHelper

Attributes

OPERATION_SEPARATOR: str

Functions

COLUMN_MASS_OPERATIONS - @staticmethod

Call multiple operations on table, the operations must be stored in a DataFrame.

                          Otherwise, only the calculated columns are kept, defaults to False
Parameters:
NameTypeDefault valueDescription
tableTable _description_
operation_dfDataFrame _description_
operation_name_columnstr Name of the column that contains the operations' names(takes first column if none), defaults to none , optional
operation_calculations_columnstr
replace_unknown_columnTableOperationUnknownColumnOption TableOperationUnknownColumnOption.SET_RESULT_TO_NAN Option to handle unknown columns, defaults to false , optional
keep_original_columnsbool False If true, the original columns used for the calculations are added at the end of the table. str, optional
Return type:
Table
COLUMN_OPERATIONS - @staticmethod
Parameters:
NameTypeDefault valueDescription
sourceTable
operationsList
keep_original_columnsbool
Return type:
Table
ROW_OPERATION - @staticmethod
Parameters:
NameTypeDefault valueDescription
sourceTable
operationsList
keep_original_rowsbool
Return type:
Table