Pandas · Method
df.to_markdown
Converts a pandas DataFrame into a Markdown-friendly table. It returns the table as text unless you provide a destination buffer.
Last updated
Syntax
DataFrame.to_markdown(buf=None, *, mode='wt', index=True, storage_options=None, **kwargs)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
DataFrame.to_htmlDataFrame.to_latex