xltable Documentation, Release 0.1
class xltable.ArrayExpression(expr)
Wraps an expression in an array formula (ie. surrounds it with {})
Parameters expr (xltable.Expression) – Expression to be wrapped
class xltable.Cell(col, row=None, row_offset=0, table=None, col_fixed=None, row_fixed=None,
**kwargs)
Reference to a cell in a table.
Parameters
• col – Column label this refers to.
• row – Row label this refers to, or None to use the current row.
• row_offset – Offset from the row, used when resolving.
• table – Name of table the column is in, if not in the same table this expression is in. Use
“%s!%s” % (worksheet.name, table.name) if refering to a table in another worksheet
• col_fixed – If True when converted to an address the column will be fixed.
• row_fixed – If True when converted to an address the row will be fixed.
class xltable.Column(col, include_header=False, table=None, col_fixed=True, row_fixed=True,
**kwargs)
Reference to a column in a table.
Parameters
• col – Column label this refers to.
• include_header – True if this expression should include the column header.
• table – Name of table the column is in, if not in the same table this expression is in. Use
“%s!%s” % (worksheet.name, table.name) if refering to a table in another worksheet
• col_fixed – If True when converted to an address the column will be fixed.
• row_fixed – If True when converted to an address the row will be fixed.
class xltable.Index(include_header=False, table=None, col_fixed=True, row_fixed=True,
**kwargs)
Reference to a table’s index.
Parameters
• include_header – True if this expression should include the index header.
• table – Name of table that owns the index, if not the table this expression is in. Use
“%s!%s” % (worksheet.name, table.name) if refering to a table in another worksheet
• col_fixed – If True when converted to an address the column will be fixed.
• row_fixed – If True when converted to an address the row will be fixed.
class xltable.Range(left_col, right_col, top_row=None, bottom_row=None, include_header=True, ta-
ble=None, col_fixed=True, row_fixed=True, **kwargs)
Reference to a range in a table.
Parameters
• left_col – Left most column label this refers to.
• right_col – Right most column label this refers to.
• top_row – Top most row label, or None to select from the top of the table.
• bottom_row – Bottom most row label, or None to select to the bottom of the table.
11