{"published":"2018-11-23 22:17:00","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","title":"\u3010Python\u3011xlrd \u3092\u4f7f\u7528\u3057\u3066 Excel \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20191212/20191212133009.png","width":"100%","blog_url":"https://baba-s.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/baba_s/","height":"190","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","url":"https://baba-s.hatenablog.com/entry/2018/11/23/221700","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2018%2F11%2F23%2F221700\" title=\"\u3010Python\u3011xlrd \u3092\u4f7f\u7528\u3057\u3066 Excel \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","categories":["\u305d\u306e\u4ed6 - Python"],"version":"1.0","author_name":"baba_s","description":"\u6982\u8981 \u4f8b\u3048\u3070\u300cexample.xlsx\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4e0a\u8a18\u306e\u3088\u3046\u306a Excel \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u5834\u5408 import xlrd # Excel \u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080 wb = xlrd.open_workbook(\"example.xlsx\") # \u30b7\u30fc\u30c8\u306e\u540d\u524d\u3092\u3059\u3079\u3066\u53d6\u5f97 print(wb.sheet_names()) # ['Sheet1'] # \u3059\u3079\u3066\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97 sheets = wb.sheets(); print(sheets[0].name) # Sheet1 # \u6307\u5b9a\u3057\u305f\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u30b7\u30fc\u30c8\u3092\u53d6\u5f97 sheet = wb.sheet_by_index(0) print(she\u2026"}