{"id":179,"date":"2026-01-18T17:38:16","date_gmt":"2026-01-18T09:38:16","guid":{"rendered":"https:\/\/openpyxl.com\/blog\/?p=179"},"modified":"2026-01-16T05:27:52","modified_gmt":"2026-01-16T05:27:52","slug":"general-process-of-using-openpyxl-package","status":"publish","type":"post","link":"https:\/\/openpyxl.com\/blog\/general-process-of-using-openpyxl-package.html","title":{"rendered":"General Process of Using OpenPyXL Package"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Three steps:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Import the module and create or open a workbook<\/li>\n\n\n\n<li>Data analysis and visualization<\/li>\n\n\n\n<li>Save and close the workbook<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Sample code<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import openpyxl as pyxl\nwb = pyxl.Workbook()\n# Or\nfrom openpyxl import Workbook\nwb = Workbook()\n\nws = wb.create_sheet()\nws&#91;\"A1\"] = 0\nws.append(&#91;1, 2, 3])\n\nwb.save('test.xlsx')\nwb.close()<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p># Three steps:<br \/>\nImport the module and create or open a workbook<br \/>\nData analysis and visualization<br \/>\nSave &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-openpyxl-workbook"],"_links":{"self":[{"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":2,"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openpyxl.com\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}