{"blog_url":"https://hk29.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/HK29/","provider_name":"Hatena Blog","categories":["Python","\u62bd\u51fa"],"published":"2022-05-15 23:26:29","url":"https://hk29.hatenablog.jp/entry/2022/05/15/232629","blog_title":"Python\u3068VBA\u3067\u4e16\u306e\u4e2d\u3092\u4fbf\u5229\u306b\u3059\u308b","title":"Python csv\u30d5\u30a1\u30a4\u30eb\u3092\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300ccsv\u300d\u3067\u8aad\u307f\u8fbc\u3080\u4ee3\u8868\u4f8b4\u3064","width":"100%","description":"\u672c\u8a18\u4e8b\u3067\u306f\u3001csv\u30d5\u30a1\u30a4\u30eb\u3092\u5916\u90e8\u30e9\u30a4\u30d6\u30e9\u30ea\u300cpandas\u300d\u3067\u306f\u306a\u304f\u3066\u3001python\u306e\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300ccsv\u300d\u3067\u53d6\u5f97\u3059\u308b\u96db\u5f62\u30b3\u30fc\u30c9\u30924\u3064\u8f09\u305b\u307e\u3057\u305f\u3002 # 1. csv\u30921\u884c\u305a\u3064\u30ea\u30b9\u30c8\u3067\u62bd\u51fa\u3059\u308b\u5834\u5408 import csv with open('iris-dataset.csv', encoding = 'utf-8', newline = '') as f: data_list = csv.reader(f) for row in data_list: print(row) \u4e0b\u56f3\u306f\u305d\u306e\u7d50\u679c\u3067\u3001\u5404\u884c\u3092\u30ea\u30b9\u30c8\u3067\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u3002 # 2. csv\u306e\u5168\u30c7\u30fc\u30bf\u3092\u3072\u3068\u3064\u306e\u30ea\u30b9\u30c8\u3067\u53d6\u5f97\u3059\u308b\u5834\u5408 import c\u2026","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/H/HK29/20220515/20220515230833.png","type":"rich","provider_url":"https://hatena.blog","author_name":"HK29","version":"1.0","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2022%2F05%2F15%2F232629\" title=\"Python csv\u30d5\u30a1\u30a4\u30eb\u3092\u6a19\u6e96\u30e2\u30b8\u30e5\u30fc\u30eb\u300ccsv\u300d\u3067\u8aad\u307f\u8fbc\u3080\u4ee3\u8868\u4f8b4\u3064 - Python\u3068VBA\u3067\u4e16\u306e\u4e2d\u3092\u4fbf\u5229\u306b\u3059\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}