` tag if specified. render_links : bool, default False Convert URLs to HTML links. encoding : str, default "utf-8" Set character encoding. %(returns)s See Also -------- to_string : Convert DataFrame to a string. Examples -------- >>> df = pd.DataFrame(data={'col1': [1, 2], 'col2': [4, 3]}) >>> html_string = '''
| ... | col1 | ...col2 | ...
|---|---|---|
| 0 | ...1 | ...4 | ...
| 1 | ...2 | ...3 | ...