<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>soratokimitonoaidani</author_name>
  <author_url>https://blog.hatena.ne.jp/soratokimitonoaidani/</author_url>
  <blog_title>子供の落書き帳 Renaissance</blog_title>
  <blog_url>https://linus-mk.hatenablog.com/</blog_url>
  <categories>
    <anon>pandas</anon>
    <anon>Python</anon>
    <anon>エラー対処法</anon>
  </categories>
  <description>pandasを使ってDataFrameを結合しようとしたら、ValueError: len(left_on) must equal the number of levels in the index of &quot;right&quot; という見慣れないエラーが出てきた。 mergeを使うべきところでjoinを使ったのが原因だった。 以下のStackOverflowを見たら疑問は解決したけど、自分の頭を整理するためにまとめておく。 python - Why does Pandas inner join give ValueError: len(left_on) must equal the number of…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flinus-mk.hatenablog.com%2Fentry%2Fpnadas_valueerror_len_left_on&quot; title=&quot;pandasでValueError: len(left_on) must equal the number of levels in the index of &amp;quot;right&amp;quot; - 子供の落書き帳 Renaissance&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>2020-09-15 21:15:50</published>
  <title>pandasでValueError: len(left_on) must equal the number of levels in the index of &quot;right&quot;</title>
  <type>rich</type>
  <url>https://linus-mk.hatenablog.com/entry/pnadas_valueerror_len_left_on</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
