------- str or None If `buf` is None, returns the result as a string. Otherwise returns `None`. See Also -------- DataFrame.to_html: Write a DataFrame to a file, buffer or string in HTML format. Tr»