{"published":"2016-02-12 10:10:49","height":"190","title":"<pandas, Python> \u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u4e2d\u306e\u8981\u7d20\u306e\u30e6\u30cb\u30fc\u30af\u306a\u3082\u306e\u306e\u500b\u6570\u3092\u52d8\u5b9a","author_url":"https://blog.hatena.ne.jp/nekoyukimmm/","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","blog_title":"\u306d\u3053\u3086\u304d\u306e\u30e1\u30e2","type":"rich","categories":["pandas","Python"],"url":"https://nekoyukimmm.hatenablog.com/entry/2016/02/12/101049","width":"100%","description":"\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0DataFrame\u306e\uff11\u30ab\u30e9\u30e0Column\u306b\u3042\u308b\u3001\u8981\u7d20element\u3067\u3001 \u30e6\u30cb\u30fc\u30afunique\u306a\u3082\u306e\u304c\u3044\u304f\u3064\u3042\u308b\u304b\uff1f\u52d8\u5b9a\u3059\u308b\u3002 In [3]: import pandas as pd In [20]: df = pd.DataFrame({'a':[1,2,2,2,3,3],'b':[4,4,4,5,6,6]}) In [21]: df Out[21]: a b 0 1 4 1 2 4 2 2 4 3 2 5 4 3 6 5 3 6 In [23]: df.a.value_counts() Out[23]: 2 3 3 2 1 1 Name: a, dtype: int64 In \u2026","blog_url":"https://nekoyukimmm.hatenablog.com/","author_name":"nekoyukimmm","version":"1.0","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekoyukimmm.hatenablog.com%2Fentry%2F2016%2F02%2F12%2F101049\" title=\"&lt;pandas, Python&gt; \u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u4e2d\u306e\u8981\u7d20\u306e\u30e6\u30cb\u30fc\u30af\u306a\u3082\u306e\u306e\u500b\u6570\u3092\u52d8\u5b9a - \u306d\u3053\u3086\u304d\u306e\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}