<?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>機械学習-pandas</anon>
    <anon>プログラミング</anon>
    <anon>プログラミング-Python</anon>
    <anon>プログラミング-Python-pandas</anon>
  </categories>
  <description>&lt;pandasのDataFrameをconcatすると型が変わってしまう場合の対処法&gt;*1 ※ 2020/03/14にQrunchで書いた記事を移行しました。 pandasのDataFrameを連結する際はconcatを使用します。 このとき、DataFrameにNaNが含まれていると型が変わってしまう場合があります。 起きた事象 dtypeがintの列を結合するとき、結合元のいずれかにNaNが含まれていると、結合後にdtypeがfloatに変わってしまいました。 int_df1 = pd.DataFrame(data=[0, 1, 2, 3, 4], columns=['Int']) int…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpredora005.hatenablog.com%2Fentry%2F2020%2F10%2F16%2F210000&quot; title=&quot;pandasのDataFrameをconcatすると型が変わってしまう場合の対処法 - どこにでもいる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/20200921204242.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-16 21:00:00</published>
  <title>pandasのDataFrameをconcatすると型が変わってしまう場合の対処法</title>
  <type>rich</type>
  <url>https://predora005.hatenablog.com/entry/2020/10/16/210000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
