Package: mlreportgen.utils
Superclasses:
Divide table into slices
Divides a table vertically into a set of narrower tables (slices). To divide a table that
is too wide to fit legibly on a page into a set of legible slices, use this
TableSlicer
object.
creates an empty table slicer object. Use its properties to specify the input table to slice,
the maximum number of columns per slice, and the number of columns to repeat.slicer
= mlreportgen.utils.TableSlicer()
Note
To slice a table generated by the mlreportgen.report.BaseTable
reporter,
set the MaxCols
property of the BaseTable
reporter to
the size of the slices you want to generate. You do not need to use this
TableSlicer
utility to set the slice width.
creates a table slicer object with additional options specified by one or more
slicer
= mlreportgen.utils.TableSlicer(Name,Value
)Name,Value
pair arguments. Name
is the property name
and Value
is the corresponding value. Name
must appear
inside single (''
) or double (""
) quotes. You can
specify several name-value pair arguments in any order as
Name1,Value1,...,NameN,ValueN
.
slices = slice(slicer)
returns an array of
mlreportgen.utils.TableSlice
objects, each containing a table slice, and the
start and end column indices of the slice. The start and end column indices refer to the
column indices of the original input table.