antimatter.cell_utils#

Module Contents#

Functions#

cell_path(cname, rnum)

Helper function to get a cell path name from a column name and row number.

col_name(→ str)

Extract the column name from a cell path

row_num(→ int)

Extract the row number from a cell path

antimatter.cell_utils.cell_path(cname: str, rnum: int)#

Helper function to get a cell path name from a column name and row number. This can be used for a manual SpanTag

Parameters:
  • cname – The column name of the cell

  • rnum – The row number of the cell

Returns:

The name of the cell path

antimatter.cell_utils.col_name(path: str) str#

Extract the column name from a cell path

Parameters:

path – The name of the cell path

Returns:

The column name of the cell

antimatter.cell_utils.row_num(path: str) int#

Extract the row number from a cell path

Parameters:

path – The name of the cell path

Returns:

The row number of the cell