{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.neko3cs.net%2Fentry%2Fexcel-to-md-using-python\" title=\"Python\u3067Excel\u306e\u8868\u3092Markdown\u5f62\u5f0f\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b - \u306d\u3053\u3055\u3093\u306e\u3076\u308d\u3050\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2024-10-02 16:38:28","author_name":"neko3cs","categories":["Python","Pandas","\u5099\u5fd8\u9332"],"type":"rich","description":"\u5099\u5fd8\u9332\u3067\u3059\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7c21\u5358\u306bMarkdown\u306b\u8d77\u3053\u3059\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002 \u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u51fa\u529b\u3057\u3066\u3082\u3044\u3044\u3067\u3059\u306d\u3002 import pandas as pd df = pd.read_excel('Excel\u30d5\u30a1\u30a4\u30eb.xlsx', sheet_name='Sheet1', usecols='A:D', nrows=16) markdown_table = df.to_markdown(index=False) print(markdown_table) \u4f7f\u3046\u305f\u3081\u306b\u306f pandas \u3068 tabulate \u3068\u3044\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002 pip install pandas pi\u2026","provider_url":"https://hatena.blog","width":"100%","height":"190","version":"1.0","url":"https://blog.neko3cs.net/entry/excel-to-md-using-python","title":"Python\u3067Excel\u306e\u8868\u3092Markdown\u5f62\u5f0f\u306e\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b","image_url":null,"author_url":"https://blog.hatena.ne.jp/neko3cs/","blog_title":"\u306d\u3053\u3055\u3093\u306e\u3076\u308d\u3050","blog_url":"https://blog.neko3cs.net/","provider_name":"Hatena Blog"}