<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nami3373</author_name>
  <author_url>https://blog.hatena.ne.jp/nami3373/</author_url>
  <blog_title>ysaz (ImanazaS) blog</blog_title>
  <blog_url>https://nami3373.hatenablog.com/</blog_url>
  <categories>
    <anon>python</anon>
    <anon>データ分析</anon>
  </categories>
  <description>pandasを使ったデータフレームの成形について。meltやpivot_tableの使い方に関する備忘録。例： 都市ID毎の日別気温、湿度データが与えられているが、各列にデータがまとめられている（例えば、気温の列に全ての都市IDに紐づくデータが一纏めになっている）とき、都市ID毎の気温、湿度データを取り出し、別の列にまとめ直す。 pandasを用いた操作は、次の３つのステップで実行する。ステップ１：meltを使って、気温、湿度データを一列（value）にまとめる。あるいは、複数列で持っている値を行持ちに展開する。 ステップ２：IDとvariable名をくっつけ、keyという列をつくる。 ステッ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnami3373.hatenablog.com%2Fentry%2F2016%2F07%2F20%2F001331&quot; title=&quot;Pandasでのデータ集計 - ysaz (ImanazaS) blog&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>2016-07-20 00:13:31</published>
  <title>Pandasでのデータ集計</title>
  <type>rich</type>
  <url>https://nami3373.hatenablog.com/entry/2016/07/20/001331</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
