<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Accent</author_name>
  <author_url>https://blog.hatena.ne.jp/Accent/</author_url>
  <blog_title>強弱と高低</blog_title>
  <blog_url>https://accent.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python3</anon>
  </categories>
  <description>問題 離散データが含まれているリストが与えられたとき, 最頻値を出してよ, とかヒストグラムもいいけど各年齢でどれくらいいるのか教えてよとか言われたりする. そのとき, カウンティング関数を実装する？しない？面倒だな， 何か使えないか． 解答 Python標準ライブラリに含まれるcollectionsを使う In [1]: import collections In [2]: collections.Counter([14, 44, 32, 13, 24, 53, 14, 53, 66, 24]) Out[2]: Counter({13: 1, 14: 2, 24: 2, 32: 1, 44:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faccent.hatenablog.jp%2Fentry%2F2017%2F05%2F30%2F105356&quot; title=&quot;Python3 リストの中の要素を要素ごとにカウントする - 強弱と高低&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-30 10:53:56</published>
  <title>Python3 リストの中の要素を要素ごとにカウントする</title>
  <type>rich</type>
  <url>https://accent.hatenablog.jp/entry/2017/05/30/105356</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
