{"type":"rich","description":"DataFrame.sample\u3067\u3067\u304d\u308b\u3002 \u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u306f\u3001x.ix[random.sample(x.index, n)] \u3068\u3059\u308b\u3068\u6700\u521d\u306e\u56de\u7b54\u306b\u66f8\u3044\u3066\u3042\u308b\u304c \u4eca\u306fDataFrame\u304csample\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u3067\u3053\u3063\u3061\u3092\u4f7f\u3063\u305f\u65b9\u304c\u826f\u3044\u3063\u307d\u3044\u3002 \u4e8c\u756a\u76ee\u306e\u56de\u7b54\u306b\u66f8\u3044\u3066\u3042\u308b\u3051\u3069\u3001\u898b\u843d\u3068\u3057\u305d\u3046\u3002\u3002 \u53c2\u8003\uff1a stackoverflow.com pandas.pydata.org","author_url":"https://blog.hatena.ne.jp/anton0825/","categories":["AI"],"title":"pandas\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u884c\u3092sampling\u3059\u308b","width":"100%","published":"2017-01-01 00:00:00","blog_title":"\u65e5\u3005\u7cbe\u9032","author_name":"anton0825","blog_url":"https://anton0825.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2017%2F01%2F01%2F000000\" title=\"pandas\u3067\u30e9\u30f3\u30c0\u30e0\u306b\u884c\u3092sampling\u3059\u308b - \u65e5\u3005\u7cbe\u9032\" 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","height":"190","version":"1.0","image_url":null,"url":"https://anton0825.hatenablog.com/entry/2017/01/01/000000","provider_name":"Hatena Blog"}