<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gothedistance</author_name>
  <author_url>https://blog.hatena.ne.jp/gothedistance/</author_url>
  <blog_title>Life is Really Short, Have Your Life!!</blog_title>
  <blog_url>https://aroundthedistance.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>こんなオブジェクトが格納されているリストがあるとします。 name age sex foo 20 0 bar 30 1 hoge 40 0 それを性別で集計して各々別の配列に格納したい 作りたい配列はこんな感じ i_want_such_a_list = [ (0,(&lt;foo,20,0&gt;,&lt;hoge,40,0&gt;)), (1,(&lt;bar,30,1&gt;)) ] 簡単に出来た class SampleObj: name = &quot;&quot; sex = 0 age = 0 def __init__(self,name,sex,age): self.name= name self.sex= sex self.age …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faroundthedistance.hatenadiary.jp%2Fentry%2F2015%2F03%2F03%2F192357&quot; title=&quot;Pythonでオブジェクトが入ってるリストをGroupbyして配列に分割する - Life is Really Short, Have Your Life!!&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>2015-03-03 19:23:57</published>
  <title>Pythonでオブジェクトが入ってるリストをGroupbyして配列に分割する</title>
  <type>rich</type>
  <url>https://aroundthedistance.hatenadiary.jp/entry/2015/03/03/192357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
