{"image_url":null,"width":"100%","blog_url":"https://overflow33.hatenablog.com/","provider_name":"Hatena Blog","author_name":"overflow33","author_url":"https://blog.hatena.ne.jp/overflow33/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Foverflow33.hatenablog.com%2Fentry%2F2020%2F03%2F29%2F131407\" title=\"sci-kit Learn \u306eiris(\u30a2\u30e4\u30e1)\u30c7\u30fc\u30bf\u3092\u5206\u985e\u4ed8\u304d\u3067CSV\u3078\u4fdd\u5b58\u3059\u308b - overflow33\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","description":"import pandas as pd import numpy as np from sklearn.datasets import load_iris # \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306e\u8aad\u307f\u8fbc\u307f iris = load_iris() # \u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u6b63\u89e3\u30e9\u30d9\u30eb\u3092\u8ffd\u52a0\u3059\u308b # iris.data \u3084 iris.target \u306f <numpy.ndarray> \u578b # np.append \u306f\u6b21\u5143\u3092\u63c3\u3048\u308b -> reshape(-1, 1) -> -1 \u306f\u8981\u7d20\u6570\u306e\u81ea\u52d5\u8a2d\u5b9a data = np.append(iris.data, iris.target.reshape(-1, 1), axis=1) # \u7279\u5fb4\u91cf\u2026","categories":["python","\u6a5f\u68b0\u5b66\u7fd2","iris","pandas","skleran"],"url":"https://overflow33.hatenablog.com/entry/2020/03/29/131407","type":"rich","version":"1.0","blog_title":"overflow33\u306e\u65e5\u8a18","published":"2020-03-29 13:14:07","height":"190","title":"sci-kit Learn \u306eiris(\u30a2\u30e4\u30e1)\u30c7\u30fc\u30bf\u3092\u5206\u985e\u4ed8\u304d\u3067CSV\u3078\u4fdd\u5b58\u3059\u308b"}