<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sinhrks</author_name>
  <author_url>https://blog.hatena.ne.jp/sinhrks/</author_url>
  <blog_title>StatsFragments</blog_title>
  <blog_url>https://sinhrks.hatenablog.com/</blog_url>
  <categories>
    <anon>前処理</anon>
    <anon>Python</anon>
    <anon>pandas</anon>
  </categories>
  <description>日本語の説明がなさそうなので。 概要 pandas では groupby メソッドを使って、指定したカラムの値でデータをグループ分けできる。ここでは少し凝った方法を説明。 ※ dtアクセサ の追加、またグルーピング関連のバグ修正がいろいろ入っているので、0.15以降が必要。 ※簡単な処理については下の記事でまとめ。 Python pandas でのグルーピング/集約/変換処理まとめ - StatsFragments はじめに 例えばこんなデータがあったとして、 import pandas as pd import datetime df = pd.DataFrame({'dt1': [date…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsinhrks.hatenablog.com%2Fentry%2F2014%2F10%2F30%2F233606&quot; title=&quot;Python pandas アクセサ / Grouperで少し高度なグルーピング/集計 - StatsFragments&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>2014-10-30 23:36:06</published>
  <title>Python pandas アクセサ / Grouperで少し高度なグルーピング/集計</title>
  <type>rich</type>
  <url>https://sinhrks.hatenablog.com/entry/2014/10/30/233606</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
