@kyanny's blog

My thoughts, my life. Views/opinions are my own.

pandas: CSV to Markdown

pip install tabulate も必要。

import pandas as pd

df = pandas.read_csv('file.csv')
print(df.to_markdown())

pandas.DataFrame.to_markdown — pandas 1.1.0 documentation