{"id":11313,"date":"2023-05-13T01:59:49","date_gmt":"2023-05-12T16:59:49","guid":{"rendered":"https:\/\/extan.jp\/?p=11313"},"modified":"2023-05-13T14:44:59","modified_gmt":"2023-05-13T05:44:59","slug":"python%e3%81%a7excel%e3%81%ae%e8%aa%ad%e3%81%bf%e8%be%bc%e3%81%bf-%e6%9b%b8%e3%81%8d%e8%be%bc%e3%81%bf%e3%82%92%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%954%e9%81%b8%ef%bc%81","status":"publish","type":"post","link":"https:\/\/extan.jp\/?p=11313","title":{"rendered":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01"},"content":{"rendered":"<p>Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001<\/p>\n<div class=\"kininarukoto1\">\u30fbPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044<br \/>\n\u30fbPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\u304c\u3044\u304f\u3064\u3082\u3042\u308b\u304c\u3001\u305d\u308c\u305e\u308c\u306e\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044<\/div>\n<p>\u3067\u3059\u3088\u306d\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u3093\u306a\u304a\u60a9\u307f\u3092\u89e3\u6c7a\u3059\u308b<\/p>\n<div class=\"rdinfo\">\u30fbPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\uff14\u9078<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3059\uff01<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u3082\u304f\u3058<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/extan.jp\/?p=11313\/#Python%E3%81%A7Excel%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/extan.jp\/?p=11313\/#%E2%91%A0xlwings%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >\u2460xlwings\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/extan.jp\/?p=11313\/#%E2%91%A1openpyxl%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >\u2461openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/extan.jp\/?p=11313\/#%E2%91%A2win32com%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >\u2462win32com\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/extan.jp\/?p=11313\/#%E2%91%A3pandas%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\" >\u2463pandas\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5:<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/extan.jp\/?p=11313\/#Python%E3%81%AE%E5%AE%9F%E8%A1%8C%E6%96%B9%E6%B3%95\" >Python\u306e\u5b9f\u884c\u65b9\u6cd5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/extan.jp\/?p=11313\/#%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\" >\u3055\u3044\u3054\u306b<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Python%E3%81%A7Excel%E3%81%AE%E8%AA%AD%E3%81%BF%E8%BE%BC%E3%81%BF%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Python\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u4ee5\u4e0b\u306b\u3044\u304f\u3064\u304b\u306e\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%91%A0xlwings%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>\u2460xlwings\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>xlwings\u306fExcel\u3068Python\u3092\u3064\u306a\u3050\u3053\u3068\u304c\u3067\u304d\u308bPython\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3001Excel\u3068Python\u306e\u76f8\u4e92\u9023\u643a\u304c\u5bb9\u6613\u306b\u306a\u308a\u307e\u3059\u3002xlwings\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001Excel VBA\u30de\u30af\u30ed\u306e\u4ee3\u308f\u308a\u306bPython\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066Excel\u306e\u64cd\u4f5c\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11338\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1441_6.png\" alt=\"\" width=\"760\" height=\"140\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1441_6.png 760w, https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1441_6-300x55.png 300w, https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1441_6-718x132.png 718w\" sizes=\"auto, (max-width: 760px) 100vw, 760px\" \/><\/p>\n<p>Excel\u304b\u3089Python\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u3001Python\u30b3\u30fc\u30c9\u304b\u3089Excel\u306e\u30bb\u30eb\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<p>xlwings\u3092\u4f7f\u3063\u3066Excel\u3068Python\u3092\u9023\u643a\u3055\u305b\u308b\u5834\u5408\u3001Excel\u30d5\u30a1\u30a4\u30eb\u5185\u306bPython\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3001Excel\u304b\u3089Python\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>Excel\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001xlwings\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u72b6\u614b\u3067\u3001xlwings\u306e\u6a5f\u80fd\u3092\u4f7f\u3063\u3066Python\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>xlwings\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>xlwings\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>1. \u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u305f\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>2. pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001xlwings\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">pip install --upgrade pip\npip install xlwings<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001Python\u30b9\u30af\u30ea\u30d7\u30c8\u3067import xlwings\u3092\u4f7f\u7528\u3057\u3066xlwings\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>Python\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p>Python\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u7a7a\u306e\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">import xlwings as xw\n\ndef main():\n    xw.Range(&quot;A1&quot;).value = &#039;\u3053\u3093\u306b\u3061\u306f\u3001\u30a8\u30af\u77ed\uff01&#039;\n\nif __name__ == &#039;__main__&#039;:\n    main()<\/code><\/pre>\n<p>\u3064\u3065\u3044\u3066\u3001\u62e1\u5f35\u5b50\u3092.py\u306b\u3057\u3066\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<p>\u5834\u6240\u3082\u597d\u304d\u306a\u3068\u3053\u308d\u3067\u7d50\u69cb\u3067\u3059\u3002\u30b5\u30f3\u30d7\u30eb\u306f\u4ee5\u4e0b\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">F:\\test\\script.py<\/code><\/pre>\n<p>\u6b21\u306bscript.py\u3068\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u540d\u524d\uff08\u62e1\u5f35\u5b50\u306f\u5225\u3067\u3059\uff09\u3067Excel\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u540c\u3058\u5834\u6240\u3078\u4fdd\u5b58\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11339\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1441_7.png\" alt=\"\" width=\"223\" height=\"128\" \/><\/p>\n<h4>\u5b9f\u884c\u3059\u308b<\/h4>\n<p>xlwings\u30bf\u30d6\u3092\u30af\u30ea\u30c3\u30af\u3057\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11340\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1441_8.png\" alt=\"\" width=\"238\" height=\"117\" \/><\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002<\/p>\n<div class=\"info\"><code>\u3053\u3093\u306b\u3061\u306f\u3001\u30a8\u30af\u77ed\uff01<\/code><\/div>\n<p>\u5b9f\u884c\u3057\u305fExcel\u30d5\u30a1\u30a4\u30eb\u4e0a\u3078\u306e\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<p>\u7d9a\u3044\u3066Excel\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3093\u3067\u305d\u3053\u306eA1\u30bb\u30eb\u306b\u6587\u5b57\u5217\u3092\u66f8\u304d\u8fbc\u3080\u3088\u3046\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306b\u5dee\u3057\u66ff\u3048\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">import xlwings as xw\n\ndef main():\n    path = r&#039;F:\\test\\testbook.xlsx&#039;\n\n    # \u5916\u90e8Excel\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\n    book = xw.Book(path)\n\n    # A1\u30bb\u30eb\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\n    book.sheets[0].range(&quot;A1&quot;).value = &#039;\u3053\u3093\u306b\u3061\u306f\u3001\u30a8\u30af\u77ed\uff01&#039;\n\n    # \u30d6\u30c3\u30af\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u308b\n    book.save()\n    book.close()\n\nif __name__ == &#039;__main__&#039;:\n    main()<\/code><\/pre>\n<p>\u5b9f\u884c\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u306f\u3044\u3001\u5916\u90e8Excel\u30d5\u30a1\u30a4\u30eb\u306eA1\u30bb\u30eb\u306b\u6587\u5b57\u5217\u304c\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3057\u305f\u306d\uff01<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11348\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1.png\" alt=\"\" width=\"318\" height=\"325\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1.png 318w, https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1-294x300.png 294w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%91%A1openpyxl%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>\u2461openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>openpyxl\u306f\u3001Python\u3067Excel\u30d5\u30a1\u30a4\u30eb(xlsx\u30d5\u30a1\u30a4\u30eb\u3084xlsm\u30d5\u30a1\u30a4\u30eb)\u3092\u6271\u3046\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002Excel\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u307f\u8fbc\u307f\u3084\u66f8\u304d\u8fbc\u307f\u3001\u30bb\u30eb\u306e\u64cd\u4f5c\u306a\u3069\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Python\u30b3\u30fc\u30c9\u304b\u3089Excel\u306e\u30bb\u30eb\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<p>openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066Excel\u3068Python\u3092\u9023\u643a\u3055\u305b\u308b\u5834\u5408\u3001Python\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3001Python\u304b\u3089Excel\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">import openpyxl\n\ndef main():\n    # Excel\u30d6\u30c3\u30af\u3092\u958b\u304f\n    path = r&#039;F:\\test\\testbook.xlsx&#039;\n    workbook = openpyxl.load_workbook(path)\n\n    # A1\u30bb\u30eb\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\n    worksheet = workbook.active\n    worksheet[&#039;A1&#039;].value = &#039;\u3053\u3093\u306b\u3061\u306f\u3001\u30a8\u30af\u77ed\uff01&#039;\n\n    # Excel\u30d6\u30c3\u30af\u3092\u4fdd\u5b58\u3059\u308b\n    workbook.save(path)\n    workbook.close()\n\nif __name__ == &#039;__main__&#039;:\n    main()<\/code><\/pre>\n<p>\u62e1\u5f35\u5b50\u3092.py\u306b\u3057\u3066\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h4>openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>1. \u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u305f\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>2. pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">pip install --upgrade pip\npip install openpyxl<\/code><\/pre>\n<h4>\u5b9f\u884c\u3059\u308b<\/h4>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u7b49\u3067Python\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11348\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1.png\" alt=\"\" width=\"318\" height=\"325\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1.png 318w, https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1-294x300.png 294w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/p>\n<p>\u5b9f\u884c\u3057\u305fExcel\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%91%A2win32com%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>\u2462win32com\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>win32com \u306f\u3001Windows\u4e0a\u3067\u52d5\u4f5c\u3059\u308bPython\u30d7\u30ed\u30b0\u30e9\u30e0\u304cCOM\uff08Component Object Model\uff09\u3092\u4f7f\u7528\u3057\u3066Windows\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002Microsoft Office\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\uff08\u4f8b\u3048\u3070\u3001Excel\u3001Word\u3001PowerPoint\u306a\u3069\uff09\u3068\u5bfe\u8a71\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>win32com\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001Excel\u306e\u30bb\u30eb\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<p>win32com\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066Excel\u3068Python\u3092\u9023\u643a\u3055\u305b\u308b\u5834\u5408\u3001Python\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3001Python\u304b\u3089Excel\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">import win32com.client\n\ndef main():\n    # Excel\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u304f\n    excel = win32com.client.Dispatch(&quot;Excel.Application&quot;)\n    # Excel\u30d6\u30c3\u30af\u3092\u958b\u304f\n    path = r&#039;F:\\test\\testbook.xlsx&#039;\n    workbook = excel.Workbooks.Open(path)\n\n    # A1\u30bb\u30eb\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\n    worksheet = workbook.ActiveSheet\n    worksheet.Range(&quot;A1&quot;).Value = &#039;\u3053\u3093\u306b\u3061\u306f\u3001\u30a8\u30af\u77ed\uff01&#039;\n\n    # Excel\u30d6\u30c3\u30af\u3092\u4fdd\u5b58\u3059\u308b\n    workbook.Save()\n    workbook.Close()\n\nif __name__ == &#039;__main__&#039;:\n    main()<\/code><\/pre>\n<p>\u62e1\u5f35\u5b50\u3092.py\u306b\u3057\u3066\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h4>win32com\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>win32com\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>1. \u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u305f\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>2. pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">pip install --upgrade pip\npip install pywin32<\/code><\/pre>\n<h4>\u5b9f\u884c\u3059\u308b<\/h4>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u7b49\u3067Python\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11348\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1.png\" alt=\"\" width=\"318\" height=\"325\" srcset=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1.png 318w, https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_1-294x300.png 294w\" sizes=\"auto, (max-width: 318px) 100vw, 318px\" \/><\/p>\n<p>\u5b9f\u884c\u3057\u305fExcel\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">VBA\u3068\u52d5\u304d\u304c\u4e00\u7dd2\u306a\u306e\u3067\u3001\u30bf\u30ab\u30d2\u30ed\u7684\u306b\u306f\u4e00\u756a\u99b4\u67d3\u307f\u304c\u3042\u308b\u3084\u308a\u65b9\u3067\u3059\u306d\u3002<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%91%A3pandas%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%E3%82%92%E4%BD%BF%E7%94%A8%E3%81%99%E3%82%8B%E6%96%B9%E6%B3%95\"><\/span>\u2463pandas\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3059\u308b\u65b9\u6cd5:<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>pandas\uff08\u30d1\u30f3\u30c0\u30b9\uff09\u306f\u3001Python\u306e\u30c7\u30fc\u30bf\u89e3\u6790\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308a\u3001\u69d8\u3005\u306a\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002pandas\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u8868\u5f62\u5f0f\u306e\u30c7\u30fc\u30bf\u3067\u3042\u308b\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\uff08DataFrame\uff09\u3084\u3001\u30b7\u30ea\u30fc\u30ba\uff08Series\uff09\u3068\u547c\u3070\u308c\u308b1\u6b21\u5143\u306e\u914d\u5217\u3092\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>pandas\u306f\u3001\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u6271\u3046\u969b\u306b\u306f\u975e\u5e38\u306b\u4fbf\u5229\u3067\u3001\u30c7\u30fc\u30bf\u5206\u6790\u3084\u6a5f\u68b0\u5b66\u7fd2\u306a\u3069\u306e\u5206\u91ce\u3067\u3088\u304f\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002<br \/>\nExcel\u306e\u30bb\u30eb\u3084\u30ef\u30fc\u30af\u30b7\u30fc\u30c8\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u66f8\u304d\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h4>\u4f7f\u3044\u65b9<\/h4>\n<p>pandas\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u3063\u3066Excel\u3068Python\u3092\u9023\u643a\u3055\u305b\u308b\u5834\u5408\u3001Python\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u3001Python\u304b\u3089Excel\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">import pandas as pd\n\ndef main():\n    # Excel\u30d6\u30c3\u30af\u3092\u958b\u304f\n    path = r&#039;F:\\test\\testbook.xlsx&#039;\n  \n    workbook = pd.read_excel(path, sheet_name=&#039;Sheet1&#039;)\n\n    workbook.loc[0, &#039;A&#039;] = &#039;\u3053\u3093\u306b\u3061\u306f\u3001\u30a8\u30af\u77ed\uff01&#039;\n\n    # A1\u30bb\u30eb\u306b\u5024\u3092\u66f8\u304d\u8fbc\u3080\n\n    # Excel\u30d5\u30a1\u30a4\u30eb\u306b\u66f8\u304d\u8fbc\u3080\n    workbook.to_excel(path, sheet_name=&#039;Sheet1&#039;, index=False)\n\nif __name__ == &#039;__main__&#039;:\n    main()<\/code><\/pre>\n<p>\u62e1\u5f35\u5b50\u3092.py\u306b\u3057\u3066\u4efb\u610f\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h4>pandas\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>pandas\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u5148\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>1. \u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u307e\u305f\u306f\u30bf\u30fc\u30df\u30ca\u30eb\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<p>2. pip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001openpyxl\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3066Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002<\/p>\n<pre style=\"padding: 0;\"><code class=\"language-python line-numbers\">pip install --upgrade pip\npip install pandas<\/code><\/pre>\n<h4>\u5b9f\u884c\u3059\u308b<\/h4>\n<p>\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u7b49\u3067Python\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u7d50\u679c\u3067\u3059\u3002<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11349\" src=\"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/051223_1652_2.png\" alt=\"\" width=\"217\" height=\"148\" \/><\/p>\n<p>\u5b9f\u884c\u3057\u305fExcel\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u8aad\u307f\u8fbc\u307f\u3068\u66f8\u304d\u8fbc\u307f\u304c\u3067\u304d\u307e\u3057\u305f\u306d\u3002<\/p>\n<p><!--\u5439\u304d\u51fa\u3057\u306f\u3058\u307e\u308a--><\/p>\n<div class=\"balloon5\">\n<div class=\"faceicon\">\n<img loading=\"lazy\" decoding=\"async\" src=\"\/wp-content\/uploads\/2020\/11\/taka_kao.gif\" alt=\"\u30bf\u30ab\u30d2\u30ed\" width=\"110\" height=\"110\" \/>\n<div class=\"faceiconfont\">\u30bf\u30ab\u30d2\u30ed<\/div>\n<\/div>\n<div class=\"chatting\">\n<div class=\"says\">A1\u306e\u3064\u3082\u308a\u304cA2\u306b\u306a\u308a\u307e\u3059\u306d\u3002\u30bb\u30eb\u306e\u6307\u5b9a\u65b9\u6cd5\u304c\u3044\u307e\u3044\u3061\u308f\u304b\u3089\u306a\u3044\u3067\u3059\u306d\u2026<\/div>\n<\/div>\n<\/div>\n<p><!--\u5439\u304d\u51fa\u3057\u7d42\u308f\u308a--><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Python%E3%81%AE%E5%AE%9F%E8%A1%8C%E6%96%B9%E6%B3%95\"><\/span>Python\u306e\u5b9f\u884c\u65b9\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Python\u306e\u5b9f\u884c\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f\u5225\u306e\u8a18\u4e8b\u306b\u8a73\u3057\u304f\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/extan.jp\/?p=11324\">Python\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd54\u9078\uff01Excel\u7d4c\u7531\u306e\u5b9f\u884c\u65b9\u6cd5\u3082\uff01<\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E3%81%95%E3%81%84%E3%81%94%E3%81%AB\"><\/span>\u3055\u3044\u3054\u306b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3044\u304b\u304c\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4eca\u56de\u306f\u3001<\/p>\n<div class=\"endinfo\">\u30fbPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\uff14\u9078<\/div>\n<p>\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u305f\u3001\u4ed6\u306b\u3082\u4fbf\u5229\u306a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3088\u308d\u3057\u3051\u308c\u3070\u3054\u53c2\u7167\u9802\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u308a\u305f\u3044\u3068\u304d\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3002 \u3051\u3069\u3001\u305d\u3093\u306a\u4e2d\u3067\u60a9\u3080\u3053\u3068\u306f\u3001 \u30fbPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u3089\u306a\u3044 \u30fbPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f&#8230;<\/p>\n","protected":false},"author":1,"featured_media":11306,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[218],"tags":[75],"class_list":{"0":"post-11313","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python","8":"tag-75","9":"article cf"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"\u30bf\u30ab\u30d2\u30ed@extan\"\/>\n\t<meta name=\"keywords\" content=\"\u30d6\u30c3\u30af\u64cd\u4f5c\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/extan.jp\/?p=11313\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" \/>\n\t\t<meta property=\"og:site_name\" content=\"\u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/extan.jp\/?p=11313\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-05-12T16:59:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-05-13T05:44:59+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#article\",\"name\":\"Python\\u3067Excel\\u306e\\u8aad\\u307f\\u8fbc\\u307f\\\/\\u66f8\\u304d\\u8fbc\\u307f\\u3092\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"headline\":\"Python\\u3067Excel\\u306e\\u8aad\\u307f\\u8fbc\\u307f\\\/\\u66f8\\u304d\\u8fbc\\u307f\\u3092\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01\",\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/py.png\",\"width\":689,\"height\":486,\"caption\":\"python\"},\"datePublished\":\"2023-05-13T01:59:49+09:00\",\"dateModified\":\"2023-05-13T14:44:59+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#webpage\"},\"articleSection\":\"Python, \\u30d6\\u30c3\\u30af\\u64cd\\u4f5c\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\\/\\\/extan.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=218#listItem\",\"name\":\"Python\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=218#listItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\\\/\\\/extan.jp\\\/?cat=218\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#listItem\",\"name\":\"Python\\u3067Excel\\u306e\\u8aad\\u307f\\u8fbc\\u307f\\\/\\u66f8\\u304d\\u8fbc\\u307f\\u3092\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#listItem\",\"position\":3,\"name\":\"Python\\u3067Excel\\u306e\\u8aad\\u307f\\u8fbc\\u307f\\\/\\u66f8\\u304d\\u8fbc\\u307f\\u3092\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?cat=218#listItem\",\"name\":\"Python\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"url\":\"https:\\\/\\\/extan.jp\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/extan.jp\\\/?author=1\",\"name\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"\\u30bf\\u30ab\\u30d2\\u30ed@extan\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#webpage\",\"url\":\"https:\\\/\\\/extan.jp\\\/?p=11313\",\"name\":\"Python\\u3067Excel\\u306e\\u8aad\\u307f\\u8fbc\\u307f\\\/\\u66f8\\u304d\\u8fbc\\u307f\\u3092\\u3059\\u308b\\u65b9\\u6cd54\\u9078\\uff01 | \\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/extan.jp\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/py.png\",\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313\\\/#mainImage\",\"width\":689,\"height\":486,\"caption\":\"python\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/?p=11313#mainImage\"},\"datePublished\":\"2023-05-13T01:59:49+09:00\",\"dateModified\":\"2023-05-13T14:44:59+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/extan.jp\\\/#website\",\"url\":\"https:\\\/\\\/extan.jp\\\/\",\"name\":\"\\u30a8\\u30af\\u77ed\\uff5cExtan.jp\",\"description\":\"\\u50cd\\u304f\\u4eba\\u306e\\u81ea\\u7531\\u6642\\u9593\\u3092\\u3064\\u304f\\u308b\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\\/\\\/extan.jp\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","description":"","canonical_url":"https:\/\/extan.jp\/?p=11313","robots":"max-image-preview:large","keywords":"\u30d6\u30c3\u30af\u64cd\u4f5c","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/extan.jp\/?p=11313#article","name":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","headline":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01","author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/extan.jp\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/py.png","width":689,"height":486,"caption":"python"},"datePublished":"2023-05-13T01:59:49+09:00","dateModified":"2023-05-13T14:44:59+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https:\/\/extan.jp\/?p=11313#webpage"},"isPartOf":{"@id":"https:\/\/extan.jp\/?p=11313#webpage"},"articleSection":"Python, \u30d6\u30c3\u30af\u64cd\u4f5c"},{"@type":"BreadcrumbList","@id":"https:\/\/extan.jp\/?p=11313#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/extan.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=218#listItem","name":"Python"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=218#listItem","position":2,"name":"Python","item":"https:\/\/extan.jp\/?cat=218","nextItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=11313#listItem","name":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01"},"previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp#listItem","name":"\u30db\u30fc\u30e0"}},{"@type":"ListItem","@id":"https:\/\/extan.jp\/?p=11313#listItem","position":3,"name":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01","previousItem":{"@type":"ListItem","@id":"https:\/\/extan.jp\/?cat=218#listItem","name":"Python"}}]},{"@type":"Organization","@id":"https:\/\/extan.jp\/#organization","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","url":"https:\/\/extan.jp\/"},{"@type":"Person","@id":"https:\/\/extan.jp\/?author=1#author","url":"https:\/\/extan.jp\/?author=1","name":"\u30bf\u30ab\u30d2\u30ed@extan","image":{"@type":"ImageObject","@id":"https:\/\/extan.jp\/?p=11313#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/24a74fef504a714c468411d23f2d1fd451892ffebbba0d84f70d4ce0d489aefb?s=96&d=mm&r=g","width":96,"height":96,"caption":"\u30bf\u30ab\u30d2\u30ed@extan"}},{"@type":"WebPage","@id":"https:\/\/extan.jp\/?p=11313#webpage","url":"https:\/\/extan.jp\/?p=11313","name":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","inLanguage":"ja","isPartOf":{"@id":"https:\/\/extan.jp\/#website"},"breadcrumb":{"@id":"https:\/\/extan.jp\/?p=11313#breadcrumblist"},"author":{"@id":"https:\/\/extan.jp\/?author=1#author"},"creator":{"@id":"https:\/\/extan.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/extan.jp\/wp-content\/uploads\/2023\/05\/py.png","@id":"https:\/\/extan.jp\/?p=11313\/#mainImage","width":689,"height":486,"caption":"python"},"primaryImageOfPage":{"@id":"https:\/\/extan.jp\/?p=11313#mainImage"},"datePublished":"2023-05-13T01:59:49+09:00","dateModified":"2023-05-13T14:44:59+09:00"},{"@type":"WebSite","@id":"https:\/\/extan.jp\/#website","url":"https:\/\/extan.jp\/","name":"\u30a8\u30af\u77ed\uff5cExtan.jp","description":"\u50cd\u304f\u4eba\u306e\u81ea\u7531\u6642\u9593\u3092\u3064\u304f\u308b","inLanguage":"ja","publisher":{"@id":"https:\/\/extan.jp\/#organization"}}]},"og:locale":"ja_JP","og:site_name":"\u30a8\u30af\u77ed\uff5cExtan.jp","og:type":"article","og:title":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp","og:url":"https:\/\/extan.jp\/?p=11313","article:published_time":"2023-05-12T16:59:49+00:00","article:modified_time":"2023-05-13T05:44:59+00:00","twitter:card":"summary","twitter:title":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01 | \u30a8\u30af\u77ed\uff5cExtan.jp"},"aioseo_meta_data":{"post_id":"11313","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_custom_image_width":null,"og_custom_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"location":null,"local_seo":null,"created":"2026-06-24 15:28:00","updated":"2026-06-24 15:28:00","primary_term":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"twitter_image_url":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\" title=\"\u30db\u30fc\u30e0\">\u30db\u30fc\u30e0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/extan.jp\/?cat=218\" title=\"Python\">Python<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPython\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"\u30db\u30fc\u30e0","link":"https:\/\/extan.jp"},{"label":"Python","link":"https:\/\/extan.jp\/?cat=218"},{"label":"Python\u3067Excel\u306e\u8aad\u307f\u8fbc\u307f\/\u66f8\u304d\u8fbc\u307f\u3092\u3059\u308b\u65b9\u6cd54\u9078\uff01","link":"https:\/\/extan.jp\/?p=11313"}],"_links":{"self":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/11313","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11313"}],"version-history":[{"count":11,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/11313\/revisions"}],"predecessor-version":[{"id":11359,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/posts\/11313\/revisions\/11359"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=\/wp\/v2\/media\/11306"}],"wp:attachment":[{"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11313"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11313"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/extan.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11313"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}