{"title":"groupby\u3057\u3066value_counts()\u3057\u305f\u3044","height":"190","blog_title":"Blogress","width":"100%","blog_url":"https://noleff.hatenablog.com/","published":"2021-06-26 20:46:31","type":"rich","version":"1.0","provider_url":"https://hatena.blog","description":"\u30bf\u30a4\u30c8\u30eb\u901a\u308a\u3067\u3059\u3002 \u30c7\u30fc\u30bf import pandas as pd from sklearn.preprocessing import LabelEncoder df = pd.DataFrame([ ['A\u3055\u3093', 100, 'S', 'cola'], ['B\u3055\u3093', 150, 'M', 'tea'], ['C\u3055\u3093', 200, 'L', 'tea'], ['D\u3055\u3093', 100, 'S', 'tea'], ['E\u3055\u3093', 200, 'L', 'coffee'], ['F\u3055\u3093', 200, 'L', 'tea'], ['G\u3055\u3093', 150, 'M', 'coffee'], ['H\u3055\u3093', 20\u2026","author_url":"https://blog.hatena.ne.jp/Noleff/","provider_name":"Hatena Blog","image_url":null,"url":"https://noleff.hatenablog.com/entry/2021/06/26/204631","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoleff.hatenablog.com%2Fentry%2F2021%2F06%2F26%2F204631\" title=\"groupby\u3057\u3066value_counts()\u3057\u305f\u3044 - Blogress\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"Noleff","categories":[]}