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.

                            If True an error is thrown if a column in the calculation does not exist, defaults to False
                          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
error_on_unknown_columnbool False If false, the unknow column are replace with 0 in the calculations, str, 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
operationsUnion
keep_original_rowsbool
Return type:
Table