pandas.io.formats.style.Styler.to_typst

pandas 3.1.1 · Styling · method

Render the styled table as Typst source.

Call syntax

Styler.to_typst(…) Full signature
Styler.to_typst(
    buf=None,
    *,
    encoding=None,
    sparse_index=None,
    sparse_columns=None,
    max_rows=None,
    max_columns=None,
)

Run the example

Edit the example and select Run Python to see the result.

Parameters

ParameterRequirementAccepted values and behavior
buf Optional
Positional or keyword
Default None
str, path object, file-like object

Supply a destination file-like buffer, or use the default to return or print the output as documented.

encoding Optional
Keyword only
Default None
str

Name a text encoding such as "utf-8".

sparse_index Optional
Keyword only
Default None
bool
sparse_columns Optional
Keyword only
Default None
bool
max_rows Optional
Keyword only
Default None
int
max_columns Optional
Keyword only
Default None
int

Returns

str or None