Series.
to_markdown
Print Series in Markdown-friendly format.
New in version 1.0.0.
Where to send the output. By default, the output is printed to sys.stdout. Pass a writable buffer if you need to further process the output.
Mode in which file is opened.
These parameters will be passed to tabulate.
Series in Markdown-friendly format.
Examples
>>> s = pd.Series(["elk", "pig", "dog", "quetzal"], name="animal") >>> print(s.to_markdown()) | | animal | |---:|:---------| | 0 | elk | | 1 | pig | | 2 | dog | | 3 | quetzal |