<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>neko3cs</author_name>
  <author_url>https://blog.hatena.ne.jp/neko3cs/</author_url>
  <blog_title>ねこさんのぶろぐ</blog_title>
  <blog_url>https://blog.neko3cs.net/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>Pandas</anon>
    <anon>備忘録</anon>
  </categories>
  <description>備忘録です。 以下のように簡単にMarkdownに起こすことが出来ます。 テキストファイルに出力してもいいですね。 import pandas as pd df = pd.read_excel('Excelファイル.xlsx', sheet_name='Sheet1', usecols='A:D', nrows=16) markdown_table = df.to_markdown(index=False) print(markdown_table) 使うためには pandas と tabulate というパッケージをインストールする必要があります。 pip install pandas pi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.neko3cs.net%2Fentry%2Fexcel-to-md-using-python&quot; title=&quot;PythonでExcelの表をMarkdown形式の文字列に変換する - ねこさんのぶろぐ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-10-02 16:38:28</published>
  <title>PythonでExcelの表をMarkdown形式の文字列に変換する</title>
  <type>rich</type>
  <url>https://blog.neko3cs.net/entry/excel-to-md-using-python</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
