process_cell method

process_cell

Starts to process one cell.

Returns

whether this cell needs to be kept in cells model of current sheet. Commonly it should be false so that all cells will not be kept in memory after being processed and then memory be saved. For some special purpose such as user needs to access some cells later after the whole workbook having been processed, user can make this method return true to keep those special cells in Cells model and access them later by APIs such as Cells[row, column]. However, keeping cells data in Cells model will requires more memory and if all cells are kept then reading template file in LightCells mode will become same with reading it in normal way.

def process_cell(self, cell):
    ...
ParameterTypeDescription
cellCellCell object which is being processed currently

Remarks

It will be called after one cell’s data has been read.

See Also