A basic example follows:
>

$\mathrm{df}\u2254\mathrm{DataFrame}\left(\u27e8\u27e81\,2\u27e9\left\u27e83\,4\u27e9\right\u27e85\,6\u27e9\u27e9\,\mathrm{columns}=\left[a\,b\,c\right]\,\mathrm{rows}=\left[d\,e\right]\right)$

${\mathrm{DataFrame}}{}\left(\left[\begin{array}{rrr}1& 3& 5\\ 2& 4& 6\end{array}\right]{\,}{\mathrm{rows}}{\=}\left[{d}{\,}{e}\right]{\,}{\mathrm{columns}}{\=}\left[{a}{\,}{b}{\,}{c}\right]\right)$
 (1) 
>

$\mathrm{Tabulate}\left(\mathrm{df}\right)\:$


a

b

c

d

$1$

$3$

$5$

e

$2$

$4$

$6$



If we want to specify the relative width of the columns, we can do that by specifying the weights option, which specifies relative weights for the widths of the table columns. Note that, while the DataFrame has three columns, the Table has four: there is an extra column for the row labels. Thus, we specify four weights. We also use the width option to specify that the total width of the table should be 50% of the width of the worksheet.
>

$\mathrm{Tabulate}\left(\mathrm{df}\,\mathrm{weights}=\left[1\,2\,2\,2\right]\,\mathrm{width}=50.\right)\:$


a

b

c

d

$1$

$3$

$5$

e

$2$

$4$

$6$



The returned identity of the Table can be used to modify Table properties following insertion.
>

$\mathrm{id}\u2254\mathrm{Tabulate}\left(\mathrm{df}\,\mathrm{weights}=\left[1\,2\,2\,2\right]\,\mathrm{width}=50.\right)\:$


a

b

c

d

$1$

$3$

$5$

e

$2$

$4$

$6$



>

$\mathrm{DocumentTools}:\mathrm{SetProperty}\left(\mathrm{id}\,'\mathrm{fillcolor}'\left[2..,2..\right]\,''LightGreen''\right)$
