<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>predora005</author_name>
  <author_url>https://blog.hatena.ne.jp/predora005/</author_url>
  <blog_title>どこにでもいる30代SEの学習ブログ</blog_title>
  <blog_url>https://predora005.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
    <anon>プログラミング-Python</anon>
    <anon>プログラミング-Python-pandas</anon>
    <anon>機械学習</anon>
    <anon>機械学習-pandas</anon>
  </categories>
  <description>&lt;pandasで複数行の列を持つDataFrameを作成する方法&gt;*1 ※ 2020/04/04にQrunchで書いた記事を移行しました。 列が複数行となっているDataFrameを作成する方法の覚書です。 結論は「pd.MultiIndexを使う」です。 例えば、次のようなDataFrameを作成したいとします。 # One Two Three # Four Five Six # 0 1.11 2.22 3.33 # 1 4.44 5.55 6.66 # 2 7.77 8.88 9.99 MultiIndexは行にも列にも使えますが、今回は列を作るために利用しました。 MultiIndexの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpredora005.hatenablog.com%2Fentry%2F2020%2F10%2F22%2F190000&quot; title=&quot;pandasで複数行の列を持つDataFrameを作成する方法 - どこにでもいる30代SEの学習ブログ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/p/predora005/20200921/20200921203155.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-22 19:00:00</published>
  <title>pandasで複数行の列を持つDataFrameを作成する方法</title>
  <type>rich</type>
  <url>https://predora005.hatenablog.com/entry/2020/10/22/190000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
