<?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>プログラミング-スクレイピング</anon>
    <anon>気象</anon>
  </categories>
  <description>&lt;pandasのDataFrameをconcatすると型が変わってしまう場合の対処法&gt;*1 ※ 2020/03/26にQrunchで書いた記事を移行しました。 BeautifulSoupを使うと、Pythonでスクレイピングを簡単に行うことができます。しかし、セルが結合されたテーブルのスクレイピングは少々面倒です。 以下の画像は、過去の気象データなのですが、テーブルの見出しでセル結合が多用されています。このようにセルが結合されたテーブルのスクレイピング方法についてまとめました。 [1] やりたいこと 上記のようにセルが結合されたテーブルを以下のような構造に変換します。 - - - - - - …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpredora005.hatenablog.com%2Fentry%2F2020%2F10%2F18%2F190000&quot; title=&quot;Pythonでセルが結合されたテーブルをスクレイピングする方法 - どこにでもいる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/20200921202611.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-18 19:00:00</published>
  <title>Pythonでセルが結合されたテーブルをスクレイピングする方法</title>
  <type>rich</type>
  <url>https://predora005.hatenablog.com/entry/2020/10/18/190000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
