python - Error on initalization of PyLatex Table -
my goal create floating table pylatex
, want use class table
. when initialize table
following error:
traceback (most recent call last): file "table.py", line 18, in <module> table = table('rc|cl') typeerror: __init__() takes 1 argument (2 given)
this confusing consider 'rc|cl'
1 argument. make sure make nothing wrong executed script nullege, results in error above.
as feodoran mentioned in comment tabular must wrapped inside table make float.
doc = document() doc.create(table()): doc.create(tabular("llr")) tabular: tabular.add_row(("foo", "bar", "foobar")) tabular.add_hline() # etc
Comments
Post a Comment